Fixed broken indexer tests

This commit is contained in:
Mark McDowall 2013-02-22 20:51:43 -08:00
parent 2e9750d734
commit 2ebd94fdd1
2 changed files with 4 additions and 4 deletions

View File

@ -163,7 +163,7 @@ namespace NzbDrone.Core.Test.IndexerTests
.With(n => n.ApiKey = String.Empty)
.Build();
Mocker.GetMock<NewznabService>().Setup(s => s.Enabled()).Returns(newznabDefs.ToList());
Mocker.GetMock<INewznabService>().Setup(s => s.Enabled()).Returns(newznabDefs.ToList());
Mocker.GetMock<HttpProvider>()
.Setup(h => h.DownloadStream(It.IsAny<String>(), It.IsAny<NetworkCredential>()))
@ -362,7 +362,7 @@ namespace NzbDrone.Core.Test.IndexerTests
.With(n => n.ApiKey = String.Empty)
.Build();
Mocker.GetMock<NewznabService>().Setup(s => s.Enabled()).Returns(newznabDefs.ToList());
Mocker.GetMock<INewznabService>().Setup(s => s.Enabled()).Returns(newznabDefs.ToList());
Mocker.GetMock<HttpProvider>()
.Setup(h => h.DownloadStream(It.IsAny<String>(), It.IsAny<NetworkCredential>()))

View File

@ -12,9 +12,9 @@ namespace NzbDrone.Core.Indexers
{
public class Newznab : IndexerBase
{
private readonly NewznabService _newznabProvider;
private readonly INewznabService _newznabProvider;
public Newznab(HttpProvider httpProvider, ConfigProvider configProvider, NewznabService newznabProvider)
public Newznab(HttpProvider httpProvider, ConfigProvider configProvider, INewznabService newznabProvider)
: base(httpProvider, configProvider)
{
_newznabProvider = newznabProvider;