public async Task Test_UserCommentObjectJsonReader_Movie_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new UserCommentObjectJsonReader(); using (var stream = TYPE_MOVIE_JSON_INCOMPLETE_6.ToStream()) { var traktUserComment = await jsonReader.ReadObjectAsync(stream); traktUserComment.Should().NotBeNull(); traktUserComment.Type.Should().BeNull(); traktUserComment.Comment.Should().BeNull(); traktUserComment.Movie.Should().NotBeNull(); traktUserComment.Movie.Title.Should().Be("Star Wars: The Force Awakens"); traktUserComment.Movie.Year.Should().Be(2015); traktUserComment.Movie.Ids.Should().NotBeNull(); traktUserComment.Movie.Ids.Trakt.Should().Be(94024U); traktUserComment.Movie.Ids.Slug.Should().Be("star-wars-the-force-awakens-2015"); traktUserComment.Movie.Ids.Imdb.Should().Be("tt2488496"); traktUserComment.Movie.Ids.Tmdb.Should().Be(140607U); traktUserComment.Show.Should().BeNull(); traktUserComment.Season.Should().BeNull(); traktUserComment.Episode.Should().BeNull(); traktUserComment.List.Should().BeNull(); } }
public async Task Test_UserWatchingItemObjectJsonReader_Movie_ReadObject_From_Stream_Incomplete_6() { var jsonReadeer = new UserWatchingItemObjectJsonReader(); using (var stream = TYPE_MOVIE_JSON_INCOMPLETE_6.ToStream()) { var traktUserWatchingItem = await jsonReadeer.ReadObjectAsync(stream); traktUserWatchingItem.Should().NotBeNull(); traktUserWatchingItem.StartedAt.Should().Be(DateTime.Parse("2014-10-23T06:44:02.000Z").ToUniversalTime()); traktUserWatchingItem.ExpiresAt.Should().BeNull(); traktUserWatchingItem.Action.Should().BeNull(); traktUserWatchingItem.Type.Should().BeNull(); traktUserWatchingItem.Movie.Should().BeNull(); traktUserWatchingItem.Show.Should().BeNull(); traktUserWatchingItem.Episode.Should().BeNull(); } }
public async Task Test_RatingsItemObjectJsonReader_Movie_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new RatingsItemObjectJsonReader(); using (var stream = TYPE_MOVIE_JSON_INCOMPLETE_6.ToStream()) { var traktRatingItem = await jsonReader.ReadObjectAsync(stream); traktRatingItem.Should().NotBeNull(); traktRatingItem.RatedAt.Should().BeNull(); traktRatingItem.Rating.Should().Be(10); traktRatingItem.Type.Should().BeNull(); traktRatingItem.Movie.Should().BeNull(); traktRatingItem.Show.Should().BeNull(); traktRatingItem.Season.Should().BeNull(); traktRatingItem.Episode.Should().BeNull(); } }
public async Task Test_SyncPlaybackProgressItemObjectJsonReader_Movie_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new SyncPlaybackProgressItemObjectJsonReader(); using (var stream = TYPE_MOVIE_JSON_INCOMPLETE_6.ToStream()) { var traktPlaybackProgressItem = await jsonReader.ReadObjectAsync(stream); traktPlaybackProgressItem.Should().NotBeNull(); traktPlaybackProgressItem.Id.Should().Be(37U); traktPlaybackProgressItem.Progress.Should().BeNull(); traktPlaybackProgressItem.PausedAt.Should().BeNull(); traktPlaybackProgressItem.Type.Should().BeNull(); traktPlaybackProgressItem.Movie.Should().BeNull(); traktPlaybackProgressItem.Show.Should().BeNull(); traktPlaybackProgressItem.Episode.Should().BeNull(); } }
public async Task Test_HistoryItemObjectJsonReader_Movie_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new HistoryItemObjectJsonReader(); using (var stream = TYPE_MOVIE_JSON_INCOMPLETE_6.ToStream()) { var traktHistoryItem = await jsonReader.ReadObjectAsync(stream); traktHistoryItem.Should().NotBeNull(); traktHistoryItem.Id.Should().Be(1982346UL); traktHistoryItem.WatchedAt.Should().BeNull(); traktHistoryItem.Action.Should().BeNull(); traktHistoryItem.Type.Should().BeNull(); traktHistoryItem.Movie.Should().BeNull(); traktHistoryItem.Show.Should().BeNull(); traktHistoryItem.Season.Should().BeNull(); traktHistoryItem.Episode.Should().BeNull(); } }
public async Task Test_ListItemObjectJsonReader_Movie_ReadObject_From_Stream_Incomplete_6() { var jsonReader = new ListItemObjectJsonReader(); using (var stream = TYPE_MOVIE_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.Movie.Should().BeNull(); traktListItem.Show.Should().BeNull(); traktListItem.Season.Should().BeNull(); traktListItem.Episode.Should().BeNull(); traktListItem.Person.Should().BeNull(); } }