public async Task Test_UserHiddenItemObjectJsonReader_Movie_ReadObject_From_Stream_Incomplete_3() { var jsonReader = new UserHiddenItemObjectJsonReader(); using (var stream = TYPE_MOVIE_JSON_INCOMPLETE_3.ToStream()) { var traktUserHiddenItem = await jsonReader.ReadObjectAsync(stream); traktUserHiddenItem.Should().NotBeNull(); traktUserHiddenItem.HiddenAt.Should().Be(DateTime.Parse("2014-09-01T09:10:11.000Z").ToUniversalTime()); traktUserHiddenItem.Type.Should().Be(TraktHiddenItemType.Movie); traktUserHiddenItem.Movie.Should().BeNull(); traktUserHiddenItem.Show.Should().BeNull(); traktUserHiddenItem.Season.Should().BeNull(); } }
public async Task Test_SearchResultObjectJsonReader_Movie_ReadObject_From_Stream_Incomplete_3() { var jsonReader = new SearchResultObjectJsonReader(); using (var stream = TYPE_MOVIE_JSON_INCOMPLETE_3.ToStream()) { var traktSearchResultItem = await jsonReader.ReadObjectAsync(stream); traktSearchResultItem.Should().NotBeNull(); traktSearchResultItem.Type.Should().Be(TraktSearchResultType.Movie); traktSearchResultItem.Score.Should().Be(46.29501f); traktSearchResultItem.Movie.Should().BeNull(); traktSearchResultItem.Show.Should().BeNull(); traktSearchResultItem.Episode.Should().BeNull(); traktSearchResultItem.List.Should().BeNull(); traktSearchResultItem.Person.Should().BeNull(); } }
public async Task Test_UserCommentObjectJsonReader_Movie_ReadObject_From_Stream_Incomplete_3() { var jsonReader = new UserCommentObjectJsonReader(); using (var stream = TYPE_MOVIE_JSON_INCOMPLETE_3.ToStream()) { var traktUserComment = await jsonReader.ReadObjectAsync(stream); traktUserComment.Should().NotBeNull(); traktUserComment.Type.Should().Be(TraktObjectType.Movie); 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.Movie.Should().BeNull(); traktUserComment.Show.Should().BeNull(); traktUserComment.Season.Should().BeNull(); traktUserComment.Episode.Should().BeNull(); traktUserComment.List.Should().BeNull(); } }