1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

Update FluentMigrator to v4

This commit is contained in:
ta264
2019-10-14 21:21:00 +01:00
committed by Qstick
parent ca9d9f093c
commit 2b39865251
20 changed files with 212 additions and 161 deletions
+9 -1
View File
@@ -5,6 +5,8 @@ using System.IO;
using System.Linq;
using FluentMigrator.Runner;
using Marr.Data;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using NUnit.Framework;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Datastore.Migration.Framework;
@@ -96,9 +98,15 @@ namespace NzbDrone.Core.Test.Framework
return testDb;
}
protected virtual void SetupLogging()
{
Mocker.SetConstant<ILoggerProvider>(NullLoggerProvider.Instance);
}
protected void SetupContainer()
{
WithTempAsAppPath();
SetupLogging();
Mocker.SetConstant<IConnectionStringFactory>(Mocker.Resolve<ConnectionStringFactory>());
Mocker.SetConstant<IMigrationController>(Mocker.Resolve<MigrationController>());
@@ -127,4 +135,4 @@ namespace NzbDrone.Core.Test.Framework
}
}
}
}
}