mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
added siaqodb
This commit is contained in:
parent
c55099ce5a
commit
e44d262a1a
29 changed files with 761 additions and 553 deletions
|
@ -36,8 +36,8 @@ namespace NzbDrone.Core.Test.Framework
|
|||
public abstract class ObjectDbTest : CoreTest
|
||||
{
|
||||
|
||||
private EloqueraDb _db;
|
||||
protected EloqueraDb Db
|
||||
private IObjectDatabase _db;
|
||||
protected IObjectDatabase Db
|
||||
{
|
||||
get
|
||||
{
|
||||
|
@ -52,15 +52,14 @@ namespace NzbDrone.Core.Test.Framework
|
|||
{
|
||||
if (memory)
|
||||
{
|
||||
_db = new EloqueraDbFactory(new EnvironmentProvider()).CreateMemoryDb();
|
||||
_db = new SiaqoDbFactory(new DiskProvider()).CreateMemoryDb();
|
||||
}
|
||||
else
|
||||
{
|
||||
_db = new EloqueraDbFactory(new EnvironmentProvider()).Create(Path.Combine(Environment.CurrentDirectory,Guid.NewGuid().ToString()+ ".elq"));
|
||||
_db = new SiaqoDbFactory(new DiskProvider()).Create(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, Guid.NewGuid().ToString()));
|
||||
}
|
||||
|
||||
Mocker.SetConstant(Db);
|
||||
Mocker.SetConstant(Db.Db);
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue