extracted interface fom HttpProvider

This commit is contained in:
Keivan Beigi
2013-04-10 16:41:45 -07:00
parent 35e2e83595
commit 1465fbf499
28 changed files with 124 additions and 121 deletions

View File

@@ -26,21 +26,21 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetProviderTests
private void WithFullQueue()
{
Mocker.GetMock<HttpProvider>()
Mocker.GetMock<IHttpProvider>()
.Setup(s => s.PostCommand("192.168.5.55:6789", "nzbget", "pass", It.IsAny<String>()))
.Returns(ReadAllText("Files", "Nzbget", "Queue.txt"));
}
private void WithEmptyQueue()
{
Mocker.GetMock<HttpProvider>()
Mocker.GetMock<IHttpProvider>()
.Setup(s => s.PostCommand("192.168.5.55:6789", "nzbget", "pass", It.IsAny<String>()))
.Returns(ReadAllText("Files", "Nzbget", "Queue_empty.txt"));
}
private void WithFailResponse()
{
Mocker.GetMock<HttpProvider>()
Mocker.GetMock<IHttpProvider>()
.Setup(s => s.PostCommand("192.168.5.55:6789", "nzbget", "pass", It.IsAny<String>()))
.Returns(ReadAllText("Files", "Nzbget", "JsonError.txt"));
}