Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/blame/commit/da4f53dbe4e9717e651561714cc9b7344b2e5e48/NzbDrone.Common.Test/ServiceFactoryFixture.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
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());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void event_handlers_should_be_unique()
|
|
|
|
|
{
|
|
|
|
|
var handlers = Subject.BuildAll<IHandle<ApplicationShutdownRequested>>()
|
|
|
|
|
.Select(c => c.GetType().FullName);
|
|
|
|
|
|
|
|
|
|
handlers.Should().OnlyHaveUniqueItems();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|