mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 04:21:27 +02:00
Revert "Swap to dapper and system.text.json for database backend"
This reverts commit d2065bfa1b
.
This commit is contained in:
@@ -7,8 +7,6 @@ using NzbDrone.Core.Lifecycle;
|
||||
using NzbDrone.Core.Messaging.Events;
|
||||
using Radarr.Host;
|
||||
using NzbDrone.Test.Common;
|
||||
using NzbDrone.Core.CustomFormats;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NzbDrone.Common.Test
|
||||
{
|
||||
@@ -22,11 +20,6 @@ namespace NzbDrone.Common.Test
|
||||
container.Register<IMainDatabase>(new MainDatabase(null));
|
||||
container.Resolve<IAppFolderFactory>().Register();
|
||||
|
||||
// A dummy custom format repository since this isn't a DB test
|
||||
var mockCustomFormat = Mocker.GetMock<ICustomFormatRepository>();
|
||||
mockCustomFormat.Setup(x => x.All()).Returns(new List<CustomFormatDefinition>());
|
||||
container.Register<ICustomFormatRepository>(mockCustomFormat.Object);
|
||||
|
||||
Mocker.SetConstant(container);
|
||||
|
||||
var handlers = Subject.BuildAll<IHandle<ApplicationStartedEvent>>()
|
||||
@@ -35,4 +28,4 @@ namespace NzbDrone.Common.Test
|
||||
handlers.Should().OnlyHaveUniqueItems();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user