mirror of https://github.com/Radarr/Radarr
Fixed newznab testing and saving
This commit is contained in:
parent
1ef756acd2
commit
07cb7edfcf
|
@ -20,7 +20,7 @@ namespace NzbDrone.Core.Test.IndexerTests
|
|||
{
|
||||
_indexers = new List<IIndexer>();
|
||||
|
||||
_indexers.Add(new Newznab());
|
||||
_indexers.Add(Mocker.GetMock<Newznab>().Object);
|
||||
_indexers.Add(new Omgwtfnzbs());
|
||||
_indexers.Add(new Wombles());
|
||||
|
||||
|
|
|
@ -16,9 +16,7 @@ namespace NzbDrone.Core.Indexers.Newznab
|
|||
private readonly IFetchFeedFromIndexers _feedFetcher;
|
||||
private readonly HttpProvider _httpProvider;
|
||||
private readonly Logger _logger;
|
||||
|
||||
|
||||
|
||||
|
||||
public Newznab(IFetchFeedFromIndexers feedFetcher, HttpProvider httpProvider, Logger logger)
|
||||
{
|
||||
_feedFetcher = feedFetcher;
|
||||
|
@ -26,7 +24,9 @@ namespace NzbDrone.Core.Indexers.Newznab
|
|||
_logger = logger;
|
||||
}
|
||||
|
||||
public Newznab()
|
||||
//protected so it can be mocked, but not used for DI
|
||||
//TODO: Is there a better way to achieve this?
|
||||
protected Newznab()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue