mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -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
|
@ -22,7 +22,6 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
public class BannerProviderTest : CoreTest
|
||||
{
|
||||
private Series _series;
|
||||
private ProgressNotification _notification;
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
|
@ -33,8 +32,6 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
.With(s => s.SeriesId = 12345)
|
||||
.Build();
|
||||
|
||||
_notification = new ProgressNotification("Test");
|
||||
|
||||
var path = @"C:\Windows\Temp";
|
||||
|
||||
Mocker.GetMock<DiskProvider>().Setup(s => s.CreateDirectory(path));
|
||||
|
@ -55,7 +52,7 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
public void Download_should_return_true_when_banner_is_downloaded_successfully()
|
||||
{
|
||||
WithSuccessfulDownload();
|
||||
var result = Mocker.Resolve<BannerProvider>().Download(_notification, _series);
|
||||
var result = Mocker.Resolve<BannerProvider>().Download(_series);
|
||||
result.Should().BeTrue();
|
||||
}
|
||||
|
||||
|
@ -63,7 +60,7 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||
public void Download_should_return_false_when_banner_download_fails()
|
||||
{
|
||||
WithFailedDownload();
|
||||
var result = Mocker.Resolve<BannerProvider>().Download(_notification, _series);
|
||||
var result = Mocker.Resolve<BannerProvider>().Download(_series);
|
||||
result.Should().BeFalse();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue