mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
added open generic registration for simple repository, services can now use simple repository independently.
This commit is contained in:
parent
63cf7a3b85
commit
e7deda4d5d
9 changed files with 28 additions and 45 deletions
|
@ -50,14 +50,14 @@ namespace NzbDrone.Core.Test.Framework
|
|||
|
||||
protected void WithObjectDb(bool memory = true)
|
||||
{
|
||||
if (memory)
|
||||
{
|
||||
_db = new SiaqoDbFactory(new DiskProvider(),new EnvironmentProvider()).CreateMemoryDb();
|
||||
}
|
||||
else
|
||||
{
|
||||
//if (memory)
|
||||
//{
|
||||
// _db = new SiaqoDbFactory(new DiskProvider(),new EnvironmentProvider()).CreateMemoryDb();
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
_db = new SiaqoDbFactory(new DiskProvider(),new EnvironmentProvider()).Create(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, Guid.NewGuid().ToString()));
|
||||
}
|
||||
//}
|
||||
|
||||
Mocker.SetConstant(Db);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue