mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Removed Progress Notification from BannerProvider.
This commit is contained in:
parent
861f6c1a0c
commit
c8f1bccc50
4 changed files with 27 additions and 18 deletions
|
@ -30,20 +30,20 @@ namespace NzbDrone.Core.Test.JobTests
|
|||
private void WithSuccessfulDownload()
|
||||
{
|
||||
Mocker.GetMock<BannerProvider>()
|
||||
.Setup(s => s.Download(It.IsAny<ProgressNotification>(), It.IsAny<Series>()))
|
||||
.Setup(s => s.Download(It.IsAny<Series>()))
|
||||
.Returns(true);
|
||||
}
|
||||
|
||||
private void WithFailedDownload()
|
||||
{
|
||||
Mocker.GetMock<BannerProvider>()
|
||||
.Setup(s => s.Download(It.IsAny<ProgressNotification>(), It.IsAny<Series>()))
|
||||
.Setup(s => s.Download(It.IsAny<Series>()))
|
||||
.Returns(false);
|
||||
}
|
||||
|
||||
private void VerifyDownloadMock(int times)
|
||||
{
|
||||
Mocker.GetMock<BannerProvider>().Verify(v => v.Download(_notification, It.IsAny<Series>()), Times.Exactly(times));
|
||||
Mocker.GetMock<BannerProvider>().Verify(v => v.Download(It.IsAny<Series>()), Times.Exactly(times));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue