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:
parent
2e9750d734
commit
2ebd94fdd1
@ -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>()))
|
||||
|
@ -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
Block a user