public async Task Test_TraktMoviesModule_GetMoviePeople_With_ExtendedInfo() { TraktClient client = TestUtility.GetMockClient($"{GET_MOVIE_PEOPLE_URI}?extended={EXTENDED_INFO}", MOVIE_PEOPLE_JSON); TraktResponse <ITraktCastAndCrew> response = await client.Movies.GetMoviePeopleAsync(MOVIE_ID, EXTENDED_INFO); response.Should().NotBeNull(); response.IsSuccess.Should().BeTrue(); response.HasValue.Should().BeTrue(); response.Value.Should().NotBeNull(); ITraktCastAndCrew responseValue = response.Value; responseValue.Cast.Should().NotBeNull().And.HaveCount(3); responseValue.Crew.Should().NotBeNull(); responseValue.Crew.Production.Should().NotBeNull().And.HaveCount(2); responseValue.Crew.Art.Should().NotBeNull().And.HaveCount(2); responseValue.Crew.Crew.Should().NotBeNull().And.HaveCount(2); responseValue.Crew.CostumeAndMakeup.Should().NotBeNull().And.HaveCount(2); responseValue.Crew.Directing.Should().NotBeNull().And.HaveCount(1); responseValue.Crew.Writing.Should().NotBeNull().And.HaveCount(2); responseValue.Crew.Sound.Should().NotBeNull().And.HaveCount(2); responseValue.Crew.Camera.Should().NotBeNull().And.HaveCount(2); responseValue.Crew.Lighting.Should().NotBeNull().And.HaveCount(2); responseValue.Crew.VisualEffects.Should().NotBeNull().And.HaveCount(2); responseValue.Crew.Editing.Should().NotBeNull().And.HaveCount(2); }
public async Task Test_TraktShowsModule_GetShowPeople() { TraktClient client = TestUtility.GetMockClient(GET_SHOW_PEOPLE_URI, SHOW_PEOPLE_JSON); TraktResponse <ITraktCastAndCrew> response = await client.Shows.GetShowPeopleAsync(SHOW_ID); response.Should().NotBeNull(); response.IsSuccess.Should().BeTrue(); response.HasValue.Should().BeTrue(); response.Value.Should().NotBeNull(); ITraktCastAndCrew responseValue = response.Value; responseValue.Cast.Should().NotBeNull().And.HaveCount(3); responseValue.Crew.Should().NotBeNull(); responseValue.Crew.Production.Should().NotBeNull().And.HaveCount(2); responseValue.Crew.Art.Should().NotBeNull().And.HaveCount(1); responseValue.Crew.Crew.Should().NotBeNull().And.HaveCount(1); responseValue.Crew.CostumeAndMakeup.Should().BeNull(); responseValue.Crew.Directing.Should().BeNull(); responseValue.Crew.Writing.Should().NotBeNull().And.HaveCount(3); responseValue.Crew.Sound.Should().NotBeNull().And.HaveCount(1); responseValue.Crew.Camera.Should().BeNull(); responseValue.Crew.Lighting.Should().BeNull(); responseValue.Crew.VisualEffects.Should().BeNull(); responseValue.Crew.Editing.Should().BeNull(); }