public async Task Test_UserCommentObjectJsonReader_Season_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new UserCommentObjectJsonReader(); using (var stream = TYPE_SEASON_JSON_INCOMPLETE_6.ToStream()) { var traktUserComment = await jsonReader.ReadObjectAsync(stream); traktUserComment.Should().NotBeNull(); traktUserComment.Type.Should().BeNull(); traktUserComment.Comment.Should().BeNull(); traktUserComment.Season.Should().NotBeNull(); traktUserComment.Season.Number.Should().Be(1); traktUserComment.Season.Title.Should().BeNullOrEmpty(); traktUserComment.Season.Ids.Should().NotBeNull(); traktUserComment.Season.Ids.Trakt.Should().Be(61430U); traktUserComment.Season.Ids.Tvdb.Should().Be(279121U); traktUserComment.Season.Ids.Tmdb.Should().Be(60523U); traktUserComment.Season.Ids.TvRage.Should().Be(36939U); traktUserComment.Movie.Should().BeNull(); traktUserComment.Show.Should().BeNull(); traktUserComment.Episode.Should().BeNull(); traktUserComment.List.Should().BeNull(); } }
public async Task Test_RatingsItemObjectJsonReader_Season_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new RatingsItemObjectJsonReader(); using (var stream = TYPE_SEASON_JSON_INCOMPLETE_6.ToStream()) { var traktRatingItem = await jsonReader.ReadObjectAsync(stream); traktRatingItem.Should().NotBeNull(); traktRatingItem.RatedAt.Should().BeNull(); traktRatingItem.Rating.Should().Be(8); traktRatingItem.Type.Should().BeNull(); traktRatingItem.Season.Should().BeNull(); traktRatingItem.Movie.Should().BeNull(); traktRatingItem.Show.Should().BeNull(); traktRatingItem.Episode.Should().BeNull(); } }
public async Task Test_ListItemObjectJsonReader_Season_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new ListItemObjectJsonReader(); using (var stream = TYPE_SEASON_JSON_INCOMPLETE_6.ToStream()) { var traktListItem = await jsonReader.ReadObjectAsync(stream); traktListItem.Should().NotBeNull(); traktListItem.Rank.Should().BeNull(); traktListItem.ListedAt.Should().Be(DateTime.Parse("2014-09-01T09:10:11.000Z").ToUniversalTime()); traktListItem.Type.Should().BeNull(); traktListItem.Season.Should().BeNull(); traktListItem.Movie.Should().BeNull(); traktListItem.Show.Should().BeNull(); traktListItem.Episode.Should().BeNull(); traktListItem.Person.Should().BeNull(); } }
public async Task Test_HistoryItemObjectJsonReader_Season_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new HistoryItemObjectJsonReader(); using (var stream = TYPE_SEASON_JSON_INCOMPLETE_6.ToStream()) { var traktHistoryItem = await jsonReader.ReadObjectAsync(stream); traktHistoryItem.Should().NotBeNull(); traktHistoryItem.Id.Should().Be(1982344UL); traktHistoryItem.WatchedAt.Should().BeNull(); traktHistoryItem.Action.Should().BeNull(); traktHistoryItem.Type.Should().BeNull(); traktHistoryItem.Season.Should().BeNull(); traktHistoryItem.Movie.Should().BeNull(); traktHistoryItem.Show.Should().BeNull(); traktHistoryItem.Episode.Should().BeNull(); } }
public async Task Test_UserHiddenItemObjectJsonReader_Season_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new UserHiddenItemObjectJsonReader(); using (var stream = TYPE_SEASON_JSON_INCOMPLETE_6.ToStream()) { var traktUserHiddenItem = await jsonReader.ReadObjectAsync(stream); traktUserHiddenItem.Should().NotBeNull(); traktUserHiddenItem.HiddenAt.Should().BeNull(); traktUserHiddenItem.Type.Should().BeNull(); traktUserHiddenItem.Season.Should().NotBeNull(); traktUserHiddenItem.Season.Number.Should().Be(1); traktUserHiddenItem.Season.Ids.Should().NotBeNull(); traktUserHiddenItem.Season.Ids.Trakt.Should().Be(61430U); traktUserHiddenItem.Season.Ids.Tvdb.Should().Be(279121U); traktUserHiddenItem.Season.Ids.Tmdb.Should().Be(60523U); traktUserHiddenItem.Season.Ids.TvRage.Should().Be(36939U); traktUserHiddenItem.Movie.Should().BeNull(); traktUserHiddenItem.Show.Should().BeNull(); } }