public async Task Test_ListItemObjectJsonReader_Show_ReadObject_From_Stream_Incomplete_8() { var jsonReader = new ListItemObjectJsonReader(); using (var stream = TYPE_SHOW_JSON_INCOMPLETE_8.ToStream()) { var traktListItem = await jsonReader.ReadObjectAsync(stream); traktListItem.Should().NotBeNull(); traktListItem.Rank.Should().BeNull(); traktListItem.ListedAt.Should().BeNull(); traktListItem.Type.Should().BeNull(); traktListItem.Show.Should().NotBeNull(); traktListItem.Show.Title.Should().Be("Game of Thrones"); traktListItem.Show.Year.Should().Be(2011); traktListItem.Show.Ids.Should().NotBeNull(); traktListItem.Show.Ids.Trakt.Should().Be(1390U); traktListItem.Show.Ids.Slug.Should().Be("game-of-thrones"); traktListItem.Show.Ids.Tvdb.Should().Be(121361U); traktListItem.Show.Ids.Imdb.Should().Be("tt0944947"); traktListItem.Show.Ids.Tmdb.Should().Be(1399U); traktListItem.Show.Ids.TvRage.Should().Be(24493U); traktListItem.Movie.Should().BeNull(); traktListItem.Season.Should().BeNull(); traktListItem.Episode.Should().BeNull(); traktListItem.Person.Should().BeNull(); } }
public async Task Test_HistoryItemObjectJsonReader_Show_ReadObject_From_Stream_Incomplete_8() { var jsonReader = new HistoryItemObjectJsonReader(); using (var stream = TYPE_SHOW_JSON_INCOMPLETE_8.ToStream()) { var traktHistoryItem = await jsonReader.ReadObjectAsync(stream); traktHistoryItem.Should().NotBeNull(); traktHistoryItem.Id.Should().Be(0UL); traktHistoryItem.WatchedAt.Should().BeNull(); traktHistoryItem.Action.Should().Be(TraktHistoryActionType.Checkin); traktHistoryItem.Type.Should().BeNull(); traktHistoryItem.Show.Should().BeNull(); traktHistoryItem.Movie.Should().BeNull(); traktHistoryItem.Season.Should().BeNull(); traktHistoryItem.Episode.Should().BeNull(); } }