mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 17:47:08 +00:00
Fixed broken indexer tests
This commit is contained in:
parent
2e9750d734
commit
2ebd94fdd1
2 changed files with 4 additions and 4 deletions
|
@ -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 a new issue