mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
tweaked logging tests.
This commit is contained in:
parent
22bbf83e42
commit
ccba527e89
4 changed files with 26 additions and 4 deletions
|
@ -68,6 +68,16 @@ namespace NzbDrone.Core.Test.Framework
|
|||
private ITestDatabase _db;
|
||||
private IDatabase _database;
|
||||
|
||||
|
||||
protected virtual MigrationType MigrationType
|
||||
{
|
||||
get
|
||||
{
|
||||
return MigrationType.Main;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
protected ITestDatabase Db
|
||||
{
|
||||
get
|
||||
|
@ -87,7 +97,7 @@ namespace NzbDrone.Core.Test.Framework
|
|||
MapRepository.Instance.EnableTraceLogging = true;
|
||||
|
||||
var factory = new DbFactory(new MigrationController(new NlogAnnouncer()));
|
||||
_database = factory.Create(_dbName);
|
||||
_database = factory.Create(_dbName, MigrationType);
|
||||
_db = new TestTestDatabase(_database);
|
||||
Mocker.SetConstant(_database);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue