Fixed SceneMappingProxy tests

This commit is contained in:
Mark McDowall 2013-09-05 23:28:52 -07:00
parent e07b588fd8
commit 67555db685
2 changed files with 21 additions and 17 deletions

View File

@ -13,7 +13,7 @@ namespace NzbDrone.Core.Test.DataAugmentationFixture.Scene
public class SceneMappingProxyFixture : CoreTest<SceneMappingProxy> public class SceneMappingProxyFixture : CoreTest<SceneMappingProxy>
{ {
private const string SCENE_MAPPING_URL = "http://services.nzbdrone.com/SceneMapping/Active"; private const string SCENE_MAPPING_URL = "http://services.nzbdrone.com/v1/SceneMapping";
[Test] [Test]
public void fetch_should_return_list_of_mappings() public void fetch_should_return_list_of_mappings()
@ -31,7 +31,6 @@ namespace NzbDrone.Core.Test.DataAugmentationFixture.Scene
mappings.Should().NotContain(c => c.TvdbId == 0); mappings.Should().NotContain(c => c.TvdbId == 0);
} }
[Test] [Test]
public void should_throw_on_server_error() public void should_throw_on_server_error()
{ {

View File

@ -1,27 +1,32 @@
[ [
{ {
"CleanTitle": "csinewyork", "title": "Adventure Time",
"Id": "73696", "searchTitle": "Adventure Time",
"Title": "CSI" "season": -1,
"tvdbId": 152831
}, },
{ {
"CleanTitle": "csiny", "title": "Americas Funniest Home Videos",
"Id": "73696", "searchTitle": "Americas Funniest Home Videos",
"Title": "CSI" "season": -1,
"tvdbId": 76235
}, },
{ {
"CleanTitle": "csi", "title": "Antiques Roadshow UK",
"Id": "72546", "searchTitle": "Antiques Roadshow UK",
"Title": "CSI" "season": -1,
"tvdbId": 83774
}, },
{ {
"CleanTitle": "csilasvegas", "title": "Aqua Something You Know Whatever",
"Id": "72546", "searchTitle": "Aqua Something You Know Whatever",
"Title": "CSI" "season": 9,
"tvdbId": 77120
}, },
{ {
"CleanTitle": "archer", "title": "Aqua Teen Hunger Force",
"Id": "110381", "searchTitle": "Aqua Teen Hunger Force",
"Title": "Archer" "season": -1,
"tvdbId": 77120
} }
] ]