2013-06-28 01:03:04 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Integration.Test
|
|
|
|
|
{
|
2013-07-05 04:43:28 +00:00
|
|
|
|
public class IntegrationTestFolderInfo : IAppFolderInfo
|
2013-06-28 01:03:04 +00:00
|
|
|
|
{
|
2013-07-05 04:43:28 +00:00
|
|
|
|
public IntegrationTestFolderInfo()
|
2013-06-28 01:03:04 +00:00
|
|
|
|
{
|
2013-07-05 04:43:28 +00:00
|
|
|
|
TempFolder = Path.GetTempPath();
|
|
|
|
|
AppDataFolder = Path.Combine(Directory.GetCurrentDirectory(), "integ_test", DateTime.Now.Ticks.ToString());
|
2013-06-28 01:03:04 +00:00
|
|
|
|
|
2013-07-05 04:43:28 +00:00
|
|
|
|
if (!Directory.Exists(AppDataFolder))
|
2013-06-28 01:03:04 +00:00
|
|
|
|
{
|
2013-07-05 04:43:28 +00:00
|
|
|
|
Directory.CreateDirectory(AppDataFolder);
|
2013-06-28 01:03:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
2013-07-05 04:43:28 +00:00
|
|
|
|
StartUpFolder = Directory.GetCurrentDirectory();
|
2013-06-28 01:03:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
2013-07-05 04:43:28 +00:00
|
|
|
|
public string AppDataFolder { get; private set; }
|
|
|
|
|
public string TempFolder { get; private set; }
|
|
|
|
|
public string StartUpFolder { get; private set; }
|
2013-06-28 01:03:04 +00:00
|
|
|
|
}
|
|
|
|
|
}
|