|
|
|
@ -1,14 +1,13 @@
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using FluentAssertions;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using NzbDrone.Common;
|
|
|
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
|
|
|
using NzbDrone.Core.Lifecycle;
|
|
|
|
|
using NzbDrone.Core.Messaging.Events;
|
|
|
|
|
using NzbDrone.Host;
|
|
|
|
|
using NzbDrone.Test.Common;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Mono.Test
|
|
|
|
|
namespace NzbDrone.Common.Test
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
|
|
|
|
public class ServiceFactoryFixture : TestBase<ServiceFactory>
|
|
|
|
@ -16,9 +15,10 @@ namespace NzbDrone.Mono.Test
|
|
|
|
|
[Test]
|
|
|
|
|
public void event_handlers_should_be_unique()
|
|
|
|
|
{
|
|
|
|
|
MonoOnly();
|
|
|
|
|
var container = MainAppContainerBuilder.BuildContainer(new StartupContext());
|
|
|
|
|
container.Resolve<IAppFolderFactory>().Register();
|
|
|
|
|
|
|
|
|
|
Mocker.SetConstant(MainAppContainerBuilder.BuildContainer(new StartupContext()));
|
|
|
|
|
Mocker.SetConstant(container);
|
|
|
|
|
|
|
|
|
|
var handlers = Subject.BuildAll<IHandle<ApplicationShutdownRequested>>()
|
|
|
|
|
.Select(c => c.GetType().FullName);
|