public async Task Test_SyncPlaybackProgressItemObjectJsonReader_Episode_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new SyncPlaybackProgressItemObjectJsonReader(); using (var stream = TYPE_EPISODE_JSON_INCOMPLETE_6.ToStream()) { var traktPlaybackProgressItem = await jsonReader.ReadObjectAsync(stream); traktPlaybackProgressItem.Should().NotBeNull(); traktPlaybackProgressItem.Id.Should().Be(37U); traktPlaybackProgressItem.Progress.Should().Be(65.5f); traktPlaybackProgressItem.PausedAt.Should().Be(DateTime.Parse("2015-01-25T22:01:32.000Z").ToUniversalTime()); traktPlaybackProgressItem.Type.Should().Be(TraktSyncType.Episode); traktPlaybackProgressItem.Episode.Should().NotBeNull(); traktPlaybackProgressItem.Episode.SeasonNumber.Should().Be(1); traktPlaybackProgressItem.Episode.Number.Should().Be(1); traktPlaybackProgressItem.Episode.Title.Should().Be("Winter Is Coming"); traktPlaybackProgressItem.Episode.Ids.Should().NotBeNull(); traktPlaybackProgressItem.Episode.Ids.Trakt.Should().Be(73640U); traktPlaybackProgressItem.Episode.Ids.Tvdb.Should().Be(3254641U); traktPlaybackProgressItem.Episode.Ids.Imdb.Should().Be("tt1480055"); traktPlaybackProgressItem.Episode.Ids.Tmdb.Should().Be(63056U); traktPlaybackProgressItem.Episode.Ids.TvRage.Should().Be(1065008299U); traktPlaybackProgressItem.Show.Should().BeNull(); traktPlaybackProgressItem.Movie.Should().BeNull(); } }
public async Task Test_HistoryItemObjectJsonReader_Episode_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new HistoryItemObjectJsonReader(); using (var stream = TYPE_EPISODE_JSON_INCOMPLETE_6.ToStream()) { var traktHistoryItem = await jsonReader.ReadObjectAsync(stream); traktHistoryItem.Should().NotBeNull(); traktHistoryItem.Id.Should().Be(1982347UL); traktHistoryItem.WatchedAt.Should().Be(DateTime.Parse("2014-02-27T09:28:53.000Z").ToUniversalTime()); traktHistoryItem.Action.Should().Be(TraktHistoryActionType.Checkin); traktHistoryItem.Type.Should().Be(TraktSyncItemType.Episode); traktHistoryItem.Episode.Should().NotBeNull(); traktHistoryItem.Episode.SeasonNumber.Should().Be(1); traktHistoryItem.Episode.Number.Should().Be(1); traktHistoryItem.Episode.Title.Should().Be("Winter Is Coming"); traktHistoryItem.Episode.Ids.Should().NotBeNull(); traktHistoryItem.Episode.Ids.Trakt.Should().Be(73640U); traktHistoryItem.Episode.Ids.Tvdb.Should().Be(3254641U); traktHistoryItem.Episode.Ids.Imdb.Should().Be("tt1480055"); traktHistoryItem.Episode.Ids.Tmdb.Should().Be(63056U); traktHistoryItem.Episode.Ids.TvRage.Should().Be(1065008299U); traktHistoryItem.Show.Should().BeNull(); traktHistoryItem.Movie.Should().BeNull(); traktHistoryItem.Season.Should().BeNull(); } }
public async Task Test_WatchlistItemObjectJsonReader_Episode_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new WatchlistItemObjectJsonReader(); using (var stream = TYPE_EPISODE_JSON_INCOMPLETE_6.ToStream()) { var traktWatchlistItem = await jsonReader.ReadObjectAsync(stream); traktWatchlistItem.Should().NotBeNull(); traktWatchlistItem.ListedAt.Should().BeNull(); traktWatchlistItem.Type.Should().Be(TraktSyncItemType.Episode); traktWatchlistItem.Episode.Should().BeNull(); traktWatchlistItem.Show.Should().BeNull(); traktWatchlistItem.Movie.Should().BeNull(); traktWatchlistItem.Season.Should().BeNull(); } }
public async Task Test_RatingsItemObjectJsonReader_Episode_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new RatingsItemObjectJsonReader(); using (var stream = TYPE_EPISODE_JSON_INCOMPLETE_6.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.Episode.Should().BeNull(); traktRatingItem.Show.Should().BeNull(); traktRatingItem.Movie.Should().BeNull(); traktRatingItem.Season.Should().BeNull(); } }
public async Task Test_SearchResultObjectJsonReader_Episode_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new SearchResultObjectJsonReader(); using (var stream = TYPE_EPISODE_JSON_INCOMPLETE_6.ToStream()) { var traktSearchResultItem = await jsonReader.ReadObjectAsync(stream); traktSearchResultItem.Should().NotBeNull(); traktSearchResultItem.Type.Should().BeNull(); traktSearchResultItem.Score.Should().Be(46.29501f); traktSearchResultItem.Episode.Should().BeNull(); traktSearchResultItem.Show.Should().BeNull(); traktSearchResultItem.Movie.Should().BeNull(); traktSearchResultItem.Person.Should().BeNull(); traktSearchResultItem.List.Should().BeNull(); } }
public async Task Test_UserCommentObjectJsonReader_Episode_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new UserCommentObjectJsonReader(); using (var stream = TYPE_EPISODE_JSON_INCOMPLETE_6.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.Episode.Should().BeNull(); traktUserComment.Show.Should().BeNull(); traktUserComment.Movie.Should().BeNull(); traktUserComment.Season.Should().BeNull(); traktUserComment.List.Should().BeNull(); } }