public async Task Test_HistoryItemObjectJsonReader_Show_ReadObject_From_Stream_Not_Valid_4() { var jsonReader = new HistoryItemObjectJsonReader(); using (var stream = TYPE_SHOW_JSON_NOT_VALID_4.ToStream()) { var traktHistoryItem = await jsonReader.ReadObjectAsync(stream); traktHistoryItem.Should().NotBeNull(); traktHistoryItem.Id.Should().Be(1982348UL); traktHistoryItem.WatchedAt.Should().Be(DateTime.Parse("2013-06-15T05:54:27.000Z").ToUniversalTime()); traktHistoryItem.Action.Should().Be(TraktHistoryActionType.Checkin); traktHistoryItem.Type.Should().BeNull(); traktHistoryItem.Show.Should().NotBeNull(); traktHistoryItem.Show.Title.Should().Be("Game of Thrones"); traktHistoryItem.Show.Year.Should().Be(2011); traktHistoryItem.Show.Ids.Should().NotBeNull(); traktHistoryItem.Show.Ids.Trakt.Should().Be(1390U); traktHistoryItem.Show.Ids.Slug.Should().Be("game-of-thrones"); traktHistoryItem.Show.Ids.Tvdb.Should().Be(121361U); traktHistoryItem.Show.Ids.Imdb.Should().Be("tt0944947"); traktHistoryItem.Show.Ids.Tmdb.Should().Be(1399U); traktHistoryItem.Show.Ids.TvRage.Should().Be(24493U); traktHistoryItem.Movie.Should().BeNull(); traktHistoryItem.Season.Should().BeNull(); traktHistoryItem.Episode.Should().BeNull(); } }
public async Task Test_UserHiddenItemObjectJsonReader_Show_ReadObject_From_Stream_Not_Valid_4() { var jsonReader = new UserHiddenItemObjectJsonReader(); using (var stream = TYPE_SHOW_JSON_NOT_VALID_4.ToStream()) { var traktUserHiddenItem = await jsonReader.ReadObjectAsync(stream); traktUserHiddenItem.Should().NotBeNull(); traktUserHiddenItem.HiddenAt.Should().BeNull(); traktUserHiddenItem.Type.Should().BeNull(); traktUserHiddenItem.Show.Should().BeNull(); traktUserHiddenItem.Movie.Should().BeNull(); traktUserHiddenItem.Season.Should().BeNull(); } }
public async Task Test_SearchResultObjectJsonReader_Show_ReadObject_From_Stream_Not_Valid_4() { var jsonReader = new SearchResultObjectJsonReader(); using (var stream = TYPE_SHOW_JSON_NOT_VALID_4.ToStream()) { var traktSearchResultItem = await jsonReader.ReadObjectAsync(stream); traktSearchResultItem.Should().NotBeNull(); traktSearchResultItem.Type.Should().BeNull(); traktSearchResultItem.Score.Should().BeNull(); traktSearchResultItem.Show.Should().BeNull(); traktSearchResultItem.Movie.Should().BeNull(); traktSearchResultItem.Show.Should().BeNull(); traktSearchResultItem.Episode.Should().BeNull(); traktSearchResultItem.List.Should().BeNull(); } }
public async Task Test_UserCommentObjectJsonReader_Show_ReadObject_From_Stream_Not_Valid_4() { var jsonReader = new UserCommentObjectJsonReader(); using (var stream = TYPE_SHOW_JSON_NOT_VALID_4.ToStream()) { var traktUserComment = await jsonReader.ReadObjectAsync(stream); traktUserComment.Should().NotBeNull(); traktUserComment.Type.Should().BeNull(); traktUserComment.Comment.Should().BeNull(); traktUserComment.Show.Should().BeNull(); traktUserComment.Movie.Should().BeNull(); traktUserComment.Season.Should().BeNull(); traktUserComment.Episode.Should().BeNull(); traktUserComment.List.Should().BeNull(); } }
public async Task Test_RatingsItemObjectJsonReader_Show_ReadObject_From_Stream_Not_Valid_4() { var jsonReader = new RatingsItemObjectJsonReader(); using (var stream = TYPE_SHOW_JSON_NOT_VALID_4.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().Be(9); traktRatingItem.Type.Should().Be(TraktRatingsItemType.Show); traktRatingItem.Show.Should().BeNull(); traktRatingItem.Movie.Should().BeNull(); traktRatingItem.Season.Should().BeNull(); traktRatingItem.Episode.Should().BeNull(); } }