public void GetSeriesByRemoteIdTestFailedNoMirror() { WebInterface target = new WebInterface(apiKey); Task<List<Series>> taskResult = target.GetSeriesByRemoteId("tt0934814", string.Empty, string.Empty, null); Assert.Null(taskResult.Result); }
public void GetSeriesByRemoteIdTestSuccessfullZap2ItIdWithLanguage() { WebInterface target = new WebInterface(apiKey); Task<List<Series>> taskResult = target.GetSeriesByRemoteId(string.Empty, "EP00930779", "en", this.testMirror); List<Series> result = taskResult.Result; Assert.True(result.Count == 1); Series firstElement = result[0]; Assert.Equal("en", firstElement.Language); Assert.Equal("Chuck", firstElement.Name); Assert.Equal("graphical/80348-g26.jpg", firstElement.Banner); Assert.Equal(new DateTime(2007, 09, 24), firstElement.FirstAired); Assert.Equal("tt0934814", firstElement.IMDBId); Assert.Equal("EP00930779", firstElement.Zap2ItId); Assert.Equal(80348, firstElement.Id); }
public void GetSeriesByRemoteIdTestFailedNoId() { WebInterface target = new WebInterface(apiKey); Task<List<Series>> taskResult = target.GetSeriesByRemoteId(string.Empty, string.Empty, this.testMirror); Assert.Null(taskResult.Result); }