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/bddbc7a0cf44e6be84b9a45c4a7479fa70637499/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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|