mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 13:25:13 +02:00
New: Calculate custom formats on demand
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Linq;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
using NzbDrone.Core.CustomFormats;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using NzbDrone.Core.Lifecycle;
|
||||
using NzbDrone.Core.Messaging.Events;
|
||||
@@ -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>>()
|
||||
|
Reference in New Issue
Block a user