@ -23,8 +23,6 @@ namespace NzbDrone.Core.Test.IndexerTests.TorrentRssIndexerTests
[SetUp]
public void Setup()
{
Mocker.SetConstant<IHttpClient>(Mocker.GetMock<IHttpClient>().Object);
Mocker.SetConstant<ICacheManager>(Mocker.Resolve<CacheManager>());
Mocker.SetConstant<ITorrentRssSettingsDetector>(Mocker.Resolve<TorrentRssSettingsDetector>());
Mocker.SetConstant<ITorrentRssParserFactory>(Mocker.Resolve<TorrentRssParserFactory>());
@ -80,6 +80,8 @@ namespace NzbDrone.Test.Common.AutoMoq
if (_registeredMocks.ContainsKey(type) == false)
_registeredMocks.Add(type, mock);
if (mock != null)
_container.RegisterInstance(type, mock.Object);
}
public virtual void SetConstant<T>(T instance)