mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-25 07:12:40 +00:00
parent
d0faeaf6de
commit
709d01a3b1
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,6 @@ public void Setup()
|
||||||
|
|
||||||
_trackedDownload = Builder<TrackedDownload>.CreateNew()
|
_trackedDownload = Builder<TrackedDownload>.CreateNew()
|
||||||
.With(c => c.State = TrackedDownloadState.Downloading)
|
.With(c => c.State = TrackedDownloadState.Downloading)
|
||||||
.With(c => c.ImportItem = completed)
|
|
||||||
.With(c => c.DownloadItem = completed)
|
.With(c => c.DownloadItem = completed)
|
||||||
.With(c => c.RemoteAlbum = remoteAlbum)
|
.With(c => c.RemoteAlbum = remoteAlbum)
|
||||||
.Build();
|
.Build();
|
||||||
|
@ -57,6 +56,10 @@ public void Setup()
|
||||||
Mocker.GetMock<IParsingService>()
|
Mocker.GetMock<IParsingService>()
|
||||||
.Setup(s => s.GetArtist("Drone.S01E01.HDTV"))
|
.Setup(s => s.GetArtist("Drone.S01E01.HDTV"))
|
||||||
.Returns(remoteAlbum.Artist);
|
.Returns(remoteAlbum.Artist);
|
||||||
|
|
||||||
|
Mocker.GetMock<IProvideImportItemService>()
|
||||||
|
.Setup(s => s.ProvideImportItem(It.IsAny<DownloadClientItem>(), It.IsAny<DownloadClientItem>()))
|
||||||
|
.Returns<DownloadClientItem, DownloadClientItem>((i, p) => i);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Album CreateAlbum(int id, int trackCount)
|
private Album CreateAlbum(int id, int trackCount)
|
||||||
|
|
Loading…
Reference in a new issue