moved rootdir to eloquera

This commit is contained in:
kay.one
2013-02-03 20:18:59 -08:00
parent 0155de4d92
commit 9e4bb278ef
35 changed files with 398 additions and 565 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
using System;
using System.Linq;
using NUnit.Framework;
using NzbDrone.Common;
using NzbDrone.Core.Datastore;
namespace NzbDrone.Core.Test.Framework
@@ -23,11 +24,11 @@ namespace NzbDrone.Core.Test.Framework
{
if (memory)
{
_db = new EloqueraDbFactory().CreateMemoryDb();
_db = new EloqueraDbFactory(new EnvironmentProvider()).CreateMemoryDb();
}
else
{
_db = new EloqueraDbFactory().Create(Guid.NewGuid().ToString());
_db = new EloqueraDbFactory(new EnvironmentProvider()).Create();
}
Mocker.SetConstant(Db);
+26
View File
@@ -28,6 +28,32 @@ namespace NzbDrone.Core.Test.Framework
}
public abstract class CoreTest<TSubject> : CoreTest
{
private TSubject _subject;
protected TSubject Subject
{
get
{
if (_subject == null)
{
_subject = Mocker.Resolve<TSubject>();
}
return _subject;
}
}
protected void InitiateSubject()
{
_subject = Mocker.Resolve<TSubject>();
}
}
public abstract class SqlCeTest : CoreTest
{