1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-12 11:15:43 +02:00

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 @@ public void size_newznab()
.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 @@ public void Newznab_NzbInfoUrl_should_contain_information_string()
.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;