mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-31 04:00:18 -07:00
fixed more tests.
This commit is contained in:
parent
48880e4964
commit
048162a0ef
45 changed files with 424 additions and 677 deletions
|
@ -6,13 +6,11 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
|
|||
{
|
||||
public class NotInQueueSpecification : IFetchableSpecification
|
||||
{
|
||||
private readonly DownloadProvider _downloadProvider;
|
||||
private readonly IProvideDownloadClient _downloadClientProvider;
|
||||
|
||||
|
||||
public NotInQueueSpecification(DownloadProvider downloadProvider)
|
||||
public NotInQueueSpecification(IProvideDownloadClient downloadClientProvider)
|
||||
{
|
||||
_downloadProvider = downloadProvider;
|
||||
|
||||
_downloadClientProvider = downloadClientProvider;
|
||||
}
|
||||
|
||||
public string RejectionReason
|
||||
|
@ -25,7 +23,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
|
|||
|
||||
public virtual bool IsSatisfiedBy(EpisodeParseResult subject)
|
||||
{
|
||||
return !_downloadProvider.GetActiveDownloadClient().IsInQueue(subject);
|
||||
return !_downloadClientProvider.GetDownloadClient().IsInQueue(subject);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue