|
|
|
@ -92,14 +92,14 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests
|
|
|
|
|
protected void GivenFailedDownload()
|
|
|
|
|
{
|
|
|
|
|
Mocker.GetMock<INzbgetProxy>()
|
|
|
|
|
.Setup(s => s.DownloadNzb(It.IsAny<byte[]>(), It.IsAny<string>(), It.IsAny<string>(), It.IsAny<int>(), It.IsAny<NzbgetSettings>()))
|
|
|
|
|
.Setup(s => s.DownloadNzb(It.IsAny<byte[]>(), It.IsAny<string>(), It.IsAny<string>(), It.IsAny<int>(), It.IsAny<bool>(), It.IsAny<NzbgetSettings>()))
|
|
|
|
|
.Returns((string)null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void GivenSuccessfulDownload()
|
|
|
|
|
{
|
|
|
|
|
Mocker.GetMock<INzbgetProxy>()
|
|
|
|
|
.Setup(s => s.DownloadNzb(It.IsAny<byte[]>(), It.IsAny<string>(), It.IsAny<string>(), It.IsAny<int>(), It.IsAny<NzbgetSettings>()))
|
|
|
|
|
.Setup(s => s.DownloadNzb(It.IsAny<byte[]>(), It.IsAny<string>(), It.IsAny<string>(), It.IsAny<int>(), It.IsAny<bool>(), It.IsAny<NzbgetSettings>()))
|
|
|
|
|
.Returns(Guid.NewGuid().ToString().Replace("-", ""));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|