mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
HttpClient
This commit is contained in:
parent
3a287bf7e7
commit
2c1d3339d0
55 changed files with 995 additions and 582 deletions
|
@ -54,6 +54,9 @@ namespace NzbDrone.Test.Common
|
|||
if (_mocker == null)
|
||||
{
|
||||
_mocker = new AutoMoqer();
|
||||
_mocker.SetConstant<ICacheManager>(new CacheManager());
|
||||
_mocker.SetConstant<IStartupContext>(new StartupContext(new string[0]));
|
||||
_mocker.SetConstant(TestLogger);
|
||||
}
|
||||
|
||||
return _mocker;
|
||||
|
@ -89,11 +92,7 @@ namespace NzbDrone.Test.Common
|
|||
|
||||
GetType().IsPublic.Should().BeTrue("All Test fixtures should be public to work in mono.");
|
||||
|
||||
Mocker.SetConstant<ICacheManager>(new CacheManager());
|
||||
|
||||
Mocker.SetConstant(LogManager.GetLogger("TestLogger"));
|
||||
|
||||
Mocker.SetConstant<IStartupContext>(new StartupContext(new string[0]));
|
||||
|
||||
LogManager.ReconfigExistingLoggers();
|
||||
|
||||
|
@ -140,7 +139,7 @@ namespace NzbDrone.Test.Common
|
|||
{
|
||||
if (!OsInfo.IsMono)
|
||||
{
|
||||
throw new IgnoreException("linux specific test");
|
||||
throw new IgnoreException("mono specific test");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue