mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
fixed more tests.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user