Series Grid AJAX'd.

Edit in popup for Series Grid using custom editing template.
This commit is contained in:
Mark McDowall 2011-05-09 23:32:33 -07:00
commit 70bfc49b4e
9 changed files with 181 additions and 14 deletions

View file

@ -66,14 +66,30 @@ namespace NzbDrone.Core.Test
public void AddByUrlError()
{
//Setup
string sabHost = "192.168.5.55";
string sabPort = "2222";
string apikey = "5c770e3197e4fe763423ee7c392c25d1";
string username = "admin";
string password = "pass";
string priority = "Normal";
string category = "tv";
var mocker = new AutoMoqer();
var fakeConfig = mocker.GetMock<ConfigProvider>();
fakeConfig.SetupGet(c => c.SabHost)
.Returns(sabHost);
fakeConfig.SetupGet(c => c.SabPort)
.Returns(sabPort);
fakeConfig.SetupGet(c => c.SabApiKey)
.Returns(apikey);
fakeConfig.SetupGet(c => c.SabUsername)
.Returns(username);
fakeConfig.Setup(c => c.SabPassword)
fakeConfig.SetupGet(c => c.SabPassword)
.Returns(password);
fakeConfig.Setup(c => c.SabTvPriority)
fakeConfig.SetupGet(c => c.SabTvPriority)
.Returns(priority);
fakeConfig.Setup(c => c.SabTvCategory)
fakeConfig.SetupGet(c => c.SabTvCategory)
.Returns(category);
mocker.GetMock<HttpProvider>()
.Setup(s => s.DownloadString(It.IsAny<String>()))