Fixed: UseRealHttp following addition of MetadataRequestBuilder

pull/6/head
ta264 5 years ago
parent 12b73830d3
commit b4fc4e88a5

@ -10,6 +10,7 @@ using NzbDrone.Test.Common;
using NzbDrone.Common.Http.Proxy;
using NzbDrone.Core.Http;
using NzbDrone.Core.Configuration;
using NzbDrone.Core.MetadataSource;
namespace NzbDrone.Core.Test.Framework
{
@ -28,6 +29,7 @@ namespace NzbDrone.Core.Test.Framework
Mocker.SetConstant<IHttpProvider>(new HttpProvider(TestLogger));
Mocker.SetConstant<IHttpClient>(new HttpClient(new IHttpRequestInterceptor[0], Mocker.Resolve<CacheManager>(), Mocker.Resolve<RateLimitService>(), Mocker.Resolve<FallbackHttpDispatcher>(), Mocker.Resolve<UserAgentBuilder>(), TestLogger));
Mocker.SetConstant<ILidarrCloudRequestBuilder>(new LidarrCloudRequestBuilder());
Mocker.SetConstant<IMetadataRequestBuilder>(Mocker.Resolve<MetadataRequestBuilder>());
}
}

Loading…
Cancel
Save