mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Lots of initialization, configuration clean up.
This commit is contained in:
parent
62013f6f87
commit
51518787d8
74 changed files with 316 additions and 279 deletions
|
@ -1,6 +1,7 @@
|
|||
using System.IO;
|
||||
using NUnit.Framework;
|
||||
using Ninject;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Test.Common;
|
||||
using PetaPoco;
|
||||
|
||||
|
@ -11,6 +12,7 @@ namespace NzbDrone.Core.Test.Framework
|
|||
{
|
||||
static CoreTest()
|
||||
{
|
||||
//Delete old db files
|
||||
var oldDbFiles = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.sdf", SearchOption.AllDirectories);
|
||||
foreach (var file in oldDbFiles)
|
||||
{
|
||||
|
@ -21,6 +23,14 @@ namespace NzbDrone.Core.Test.Framework
|
|||
catch { }
|
||||
}
|
||||
|
||||
//Delete App_data folder
|
||||
var appData = new EnviromentProvider().GetAppDataPath();
|
||||
|
||||
if (Directory.Exists(appData))
|
||||
{
|
||||
Directory.Delete(appData, true);
|
||||
}
|
||||
|
||||
MockLib.CreateDataBaseTemplate();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue