public async Task Test_UserHiddenItemObjectJsonReader_Season_ReadObject_From_Stream_Incomplete_5() { var jsonReader = new UserHiddenItemObjectJsonReader(); using (var stream = TYPE_SEASON_JSON_INCOMPLETE_5.ToStream()) { var traktUserHiddenItem = await jsonReader.ReadObjectAsync(stream); traktUserHiddenItem.Should().NotBeNull(); traktUserHiddenItem.HiddenAt.Should().BeNull(); traktUserHiddenItem.Type.Should().Be(TraktHiddenItemType.Season); traktUserHiddenItem.Season.Should().BeNull(); traktUserHiddenItem.Movie.Should().BeNull(); traktUserHiddenItem.Show.Should().BeNull(); } }
public async Task Test_WatchlistItemObjectJsonReader_Season_ReadObject_From_Stream_Incomplete_5() { var jsonReader = new WatchlistItemObjectJsonReader(); using (var stream = TYPE_SEASON_JSON_INCOMPLETE_5.ToStream()) { var traktWatchlistItem = await jsonReader.ReadObjectAsync(stream); traktWatchlistItem.Should().NotBeNull(); traktWatchlistItem.ListedAt.Should().BeNull(); traktWatchlistItem.Type.Should().Be(TraktSyncItemType.Season); traktWatchlistItem.Season.Should().BeNull(); traktWatchlistItem.Movie.Should().BeNull(); traktWatchlistItem.Show.Should().BeNull(); traktWatchlistItem.Episode.Should().BeNull(); } }
public async Task Test_RatingsItemObjectJsonReader_Season_ReadObject_From_Stream_Incomplete_5() { var jsonReader = new RatingsItemObjectJsonReader(); using (var stream = TYPE_SEASON_JSON_INCOMPLETE_5.ToStream()) { var traktRatingItem = await jsonReader.ReadObjectAsync(stream); traktRatingItem.Should().NotBeNull(); traktRatingItem.RatedAt.Should().Be(DateTime.Parse("2014-09-01T09:10:11.000Z").ToUniversalTime()); traktRatingItem.Rating.Should().BeNull(); traktRatingItem.Type.Should().BeNull(); traktRatingItem.Season.Should().BeNull(); traktRatingItem.Movie.Should().BeNull(); traktRatingItem.Show.Should().BeNull(); traktRatingItem.Episode.Should().BeNull(); } }
public async Task Test_HistoryItemObjectJsonReader_Season_ReadObject_From_Stream_Incomplete_5() { var jsonReader = new HistoryItemObjectJsonReader(); using (var stream = TYPE_SEASON_JSON_INCOMPLETE_5.ToStream()) { var traktHistoryItem = await jsonReader.ReadObjectAsync(stream); traktHistoryItem.Should().NotBeNull(); traktHistoryItem.Id.Should().Be(1982344UL); traktHistoryItem.WatchedAt.Should().Be(DateTime.Parse("2013-05-15T05:54:27.000Z").ToUniversalTime()); traktHistoryItem.Action.Should().Be(TraktHistoryActionType.Watch); traktHistoryItem.Type.Should().Be(TraktSyncItemType.Season); traktHistoryItem.Season.Should().BeNull(); traktHistoryItem.Movie.Should().BeNull(); traktHistoryItem.Show.Should().BeNull(); traktHistoryItem.Episode.Should().BeNull(); } }
public async Task Test_UserCommentObjectJsonReader_Season_ReadObject_From_Stream_Incomplete_5() { var jsonReader = new UserCommentObjectJsonReader(); using (var stream = TYPE_SEASON_JSON_INCOMPLETE_5.ToStream()) { var traktUserComment = await jsonReader.ReadObjectAsync(stream); traktUserComment.Should().NotBeNull(); traktUserComment.Type.Should().BeNull(); traktUserComment.Comment.Should().NotBeNull(); traktUserComment.Comment.Id.Should().Be(76957U); traktUserComment.Comment.ParentId.Should().Be(1234U); traktUserComment.Comment.CreatedAt.Should().Be(DateTime.Parse("2016-04-01T12:44:40Z").ToUniversalTime()); traktUserComment.Comment.UpdatedAt.Should().Be(DateTime.Parse("2016-04-03T08:23:38Z").ToUniversalTime()); traktUserComment.Comment.Comment.Should().Be("I hate they made The flash a kids show. Could else be much better. And with a better flash offcourse."); traktUserComment.Comment.Spoiler.Should().BeFalse(); traktUserComment.Comment.Review.Should().BeFalse(); traktUserComment.Comment.Replies.Should().Be(1); traktUserComment.Comment.Likes.Should().Be(2); traktUserComment.Comment.UserRating.Should().Be(7.3f); traktUserComment.Comment.User.Should().NotBeNull(); traktUserComment.Comment.User.Username.Should().Be("sean"); traktUserComment.Comment.User.IsPrivate.Should().BeFalse(); traktUserComment.Comment.User.Name.Should().Be("Sean Rudford"); traktUserComment.Comment.User.IsVIP.Should().BeTrue(); traktUserComment.Comment.User.IsVIP_EP.Should().BeTrue(); traktUserComment.Comment.User.Ids.Should().NotBeNull(); traktUserComment.Comment.User.Ids.Slug.Should().Be("sean"); traktUserComment.Season.Should().BeNull(); traktUserComment.Movie.Should().BeNull(); traktUserComment.Show.Should().BeNull(); traktUserComment.Episode.Should().BeNull(); traktUserComment.List.Should().BeNull(); } }