mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
Pull DownloadClientItemClientInfo part of 824d315a
This commit is contained in:
parent
1058b03f46
commit
4eac1c5663
30 changed files with 88 additions and 48 deletions
|
@ -9,6 +9,7 @@ using NzbDrone.Common.EnvironmentInfo;
|
|||
using NzbDrone.Core.Download;
|
||||
using NzbDrone.Core.Download.Clients;
|
||||
using NzbDrone.Core.HealthCheck.Checks;
|
||||
using NzbDrone.Core.Indexers;
|
||||
using NzbDrone.Core.MediaFiles;
|
||||
using NzbDrone.Core.MediaFiles.Events;
|
||||
using NzbDrone.Core.Parser.Model;
|
||||
|
@ -39,7 +40,12 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|||
{
|
||||
_downloadItem = new DownloadClientItem
|
||||
{
|
||||
DownloadClient = "Test",
|
||||
DownloadClientInfo = new DownloadClientItemClientInfo
|
||||
{
|
||||
Protocol = DownloadProtocol.Usenet,
|
||||
Id = 1,
|
||||
Name = "Test"
|
||||
},
|
||||
DownloadId = "TestId",
|
||||
OutputPath = new OsPath(_downloadItemPath)
|
||||
};
|
||||
|
@ -166,7 +172,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|||
public void should_return_ok_on_track_imported_event()
|
||||
{
|
||||
GivenFolderExists(_downloadRootPath);
|
||||
var importEvent = new TrackImportedEvent(new LocalTrack(), new TrackFile(), new List<TrackFile>(), true, new DownloadClientItem());
|
||||
var importEvent = new TrackImportedEvent(new LocalTrack(), new TrackFile(), new List<TrackFile>(), true, new DownloadClientItem { DownloadClientInfo = new DownloadClientItemClientInfo() });
|
||||
|
||||
Subject.Check(importEvent).ShouldBeOk();
|
||||
}
|
||||
|
@ -180,7 +186,7 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
|||
};
|
||||
GivenFileExists(localTrack.Path);
|
||||
|
||||
var importEvent = new TrackImportFailedEvent(new Exception(), localTrack, true, new DownloadClientItem());
|
||||
var importEvent = new TrackImportFailedEvent(new Exception(), localTrack, true, new DownloadClientItem { DownloadClientInfo = new DownloadClientItemClientInfo() });
|
||||
|
||||
Subject.Check(importEvent).ShouldBeError(wikiFragment: "permissions-error");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue