public void TestTvShowSeparateExtrasCredits() { Credits credits = Config.Client.GetTvShowCreditsAsync(IdHelper.BreakingBad).Result; Assert.NotNull(credits); Assert.NotNull(credits.Cast); Assert.Equal(IdHelper.BreakingBad, credits.Id); Cast castPerson = credits.Cast[0]; Assert.Equal("Walter White", castPerson.Character); Assert.Equal("52542282760ee313280017f9", castPerson.CreditId); Assert.Equal(17419, castPerson.Id); Assert.Equal("Bryan Cranston", castPerson.Name); Assert.NotNull(castPerson.ProfilePath); Assert.Equal(0, castPerson.Order); Assert.NotNull(credits.Crew); Crew crewPerson = credits.Crew.FirstOrDefault(s => s.Id == 66633); Assert.NotNull(crewPerson); Assert.Equal(66633, crewPerson.Id); Assert.Equal("52542287760ee31328001af1", crewPerson.CreditId); Assert.Equal("Production", crewPerson.Department); Assert.Equal("Vince Gilligan", crewPerson.Name); Assert.Equal("Executive Producer", crewPerson.Job); Assert.NotNull(crewPerson.ProfilePath); }
public void TestTvEpisodeSeparateExtrasCredits() { Credits credits = _config.Client.GetTvEpisodeCredits(BreakingBad, 1, 1); Assert.IsNotNull(credits); Assert.IsNotNull(credits.Cast); Assert.AreEqual("Walter White", credits.Cast[0].Character); Assert.AreEqual("52542282760ee313280017f9", credits.Cast[0].CreditId); Assert.AreEqual(17419, credits.Cast[0].Id); Assert.AreEqual("Bryan Cranston", credits.Cast[0].Name); Assert.IsNotNull(credits.Cast[0].ProfilePath); Assert.AreEqual(0, credits.Cast[0].Order); Crew crewPersonId = credits.Crew.FirstOrDefault(s => s.Id == 1280071); Assert.IsNotNull(crewPersonId); Assert.AreEqual(1280071, crewPersonId.Id); Assert.AreEqual("Editing", crewPersonId.Department); Assert.AreEqual("Lynne Willingham", crewPersonId.Name); Assert.AreEqual("Editor", crewPersonId.Job); Assert.IsNull(crewPersonId.ProfilePath); }
public void TestTvSeasonSeparateExtrasCredits() { Credits credits = _config.Client.GetTvSeasonCreditsAsync(IdHelper.BreakingBad, 1).Result; Assert.IsNotNull(credits); Assert.IsNotNull(credits.Cast); Assert.AreEqual("Walter White", credits.Cast[0].Character); Assert.AreEqual("52542282760ee313280017f9", credits.Cast[0].CreditId); Assert.AreEqual(17419, credits.Cast[0].Id); Assert.AreEqual("Bryan Cranston", credits.Cast[0].Name); Assert.IsNotNull(credits.Cast[0].ProfilePath); Assert.AreEqual(0, credits.Cast[0].Order); Crew crewPersonId = credits.Crew.FirstOrDefault(s => s.Id == 1223202); Assert.IsNotNull(crewPersonId); Assert.AreEqual(1223202, crewPersonId.Id); Assert.AreEqual("Production", crewPersonId.Department); Assert.AreEqual("Diane Mercer", crewPersonId.Name); Assert.AreEqual("Producer", crewPersonId.Job); Assert.IsNull(crewPersonId.ProfilePath); }
public async Task TestTvShowSeparateExtrasCreditsAsync() { Credits credits = await TMDbClient.GetTvShowCreditsAsync(IdHelper.BreakingBad); await Verify(credits); }