mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 02:22:31 +01:00
28 lines
742 B
C#
28 lines
742 B
C#
using System.Linq;
|
|
using FluentAssertions;
|
|
using NUnit.Framework;
|
|
using NzbDrone.Common.Messaging;
|
|
using NzbDrone.Core.Lifecycle;
|
|
using NzbDrone.Test.Common;
|
|
|
|
namespace NzbDrone.Common.Test
|
|
{
|
|
[TestFixture]
|
|
public class ServiceFactoryFixture : TestBase<ServiceFactory>
|
|
{
|
|
[SetUp]
|
|
public void setup()
|
|
{
|
|
Mocker.SetConstant(MainAppContainerBuilder.BuildContainer(new string[0]));
|
|
}
|
|
|
|
[Test]
|
|
public void event_handlers_should_be_unique()
|
|
{
|
|
var handlers = Subject.BuildAll<IHandle<ApplicationShutdownRequested>>()
|
|
.Select(c => c.GetType().FullName);
|
|
|
|
handlers.Should().OnlyHaveUniqueItems();
|
|
}
|
|
}
|
|
} |