mirror of https://github.com/Radarr/Radarr
Fixed broken indexer tests
This commit is contained in:
parent
2e9750d734
commit
2ebd94fdd1
|
@ -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>()))
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue