Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/blame/commit/79f69e3307d052f25bd6a35cb125541f78197b17/NzbDrone.Test.Common/MockerExtensions.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using System.Linq;
|
|
|
|
|
using NzbDrone.Test.Common.AutoMoq;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Test.Common
|
|
|
|
|
{
|
|
|
|
|
public static class MockerExtensions
|
|
|
|
|
{
|
|
|
|
|
public static TInterface Resolve<TInterface, TService>(this AutoMoqer mocker)
|
|
|
|
|
where TService : TInterface
|
|
|
|
|
{
|
|
|
|
|
var service = mocker.Resolve<TService>();
|
|
|
|
|
mocker.SetConstant<TInterface>(service);
|
|
|
|
|
return service;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|