Update FluentMigrator to v4

This commit is contained in:
ta264
2019-10-28 21:12:26 +00:00
parent d8d7a2c28a
commit ebf4859167
17 changed files with 206 additions and 134 deletions
@@ -1,6 +1,6 @@
using System;
using FluentMigrator;
using FluentMigrator.Runner;
using Microsoft.Extensions.Logging;
using NUnit.Framework;
using NzbDrone.Core.Datastore.Migration.Framework;
@@ -36,11 +36,15 @@ namespace NzbDrone.Core.Test.Framework
return db.GetDirectDataMapper();
}
protected override void SetupLogging()
{
Mocker.SetConstant<ILoggerProvider>(Mocker.Resolve<MigrationLoggerProvider>());
}
[SetUp]
public override void SetupDb()
{
Mocker.SetConstant<IAnnouncer>(Mocker.Resolve<MigrationLogger>());
SetupContainer();
}
}
}
}