mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Added Tests for CentralDispatch
This commit is contained in:
parent
c339ea6ba2
commit
6393d0a3f9
15 changed files with 133 additions and 32 deletions
|
@ -30,11 +30,11 @@ namespace NzbDrone.Core.Providers
|
|||
|
||||
public virtual IList<IndexerBase> GetEnabledIndexers()
|
||||
{
|
||||
var all = GetAllISettings();
|
||||
var all = All();
|
||||
return _indexers.Where(i => all.Exists(c => c.IndexProviderType == i.GetType().ToString() && c.Enable)).ToList();
|
||||
}
|
||||
|
||||
public virtual List<IndexerDefinition> GetAllISettings()
|
||||
public virtual List<IndexerDefinition> All()
|
||||
{
|
||||
return _database.Fetch<IndexerDefinition>();
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ namespace NzbDrone.Core.Providers
|
|||
|
||||
_indexers = indexers;
|
||||
|
||||
var currentIndexers = GetAllISettings();
|
||||
var currentIndexers = All();
|
||||
|
||||
foreach (var feedProvider in indexers)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue