public async Task Test_StatisticsObjectJsonReader_ReadObject_From_Stream_Incomplete_13() { var traktJsonReader = new StatisticsObjectJsonReader(); using (var stream = JSON_INCOMPLETE_13.ToStream()) { var traktStatistics = await traktJsonReader.ReadObjectAsync(stream); traktStatistics.Should().NotBeNull(); traktStatistics.Watchers.Should().BeNull(); traktStatistics.Plays.Should().BeNull(); traktStatistics.Collectors.Should().BeNull(); traktStatistics.CollectedEpisodes.Should().BeNull(); traktStatistics.Comments.Should().BeNull(); traktStatistics.Lists.Should().Be(49468); traktStatistics.Votes.Should().BeNull(); } }
public async Task Test_SyncMoviesLastActivitiesObjectJsonReader_ReadObject_From_Stream_Incomplete_13() { var jsonReader = new SyncMoviesLastActivitiesObjectJsonReader(); using (var stream = JSON_INCOMPLETE_13.ToStream()) { var moviesLastActivities = await jsonReader.ReadObjectAsync(stream); moviesLastActivities.Should().NotBeNull(); moviesLastActivities.WatchedAt.Should().BeNull(); moviesLastActivities.CollectedAt.Should().BeNull(); moviesLastActivities.RatedAt.Should().BeNull(); moviesLastActivities.WatchlistedAt.Should().BeNull(); moviesLastActivities.CommentedAt.Should().BeNull(); moviesLastActivities.PausedAt.Should().Be(DateTime.Parse("2014-11-20T06:51:30.250Z").ToUniversalTime()); moviesLastActivities.HiddenAt.Should().BeNull(); } }
public async Task Test_AuthorizationObjectJsonReader_ReadObject_From_Stream_Incomplete_13() { var objectJsonReader = new AuthorizationObjectJsonReader { CompleteDeserialization = true }; using (var stream = JSON_INCOMPLETE_13.ToStream()) { ITraktAuthorization traktAuthorization = await objectJsonReader.ReadObjectAsync(stream); traktAuthorization.Should().NotBeNull(); traktAuthorization.AccessToken.Should().BeNull(); traktAuthorization.RefreshToken.Should().BeNull(); traktAuthorization.Scope.Should().BeNull(); traktAuthorization.ExpiresInSeconds.Should().Be(0); traktAuthorization.TokenType.Should().BeNull(); traktAuthorization.CreatedAtTimestamp.Should().Be(1506271312UL); traktAuthorization.IgnoreExpiration.Should().BeFalse(); } }
public async Task Test_UserObjectJsonReader_ReadObject_From_Stream_Incomplete_13() { var jsonReader = new UserObjectJsonReader(); using (var stream = JSON_INCOMPLETE_13.ToStream()) { var user = await jsonReader.ReadObjectAsync(stream); user.Should().NotBeNull(); user.Username.Should().Be("sean"); user.IsPrivate.Should().BeNull(); user.Name.Should().BeNull(); user.IsVIP.Should().BeNull(); user.IsVIP_EP.Should().BeNull(); user.Ids.Should().BeNull(); user.JoinedAt.Should().BeNull(); user.Location.Should().BeNull(); user.About.Should().BeNull(); user.Gender.Should().BeNull(); user.Age.Should().BeNull(); user.Images.Should().BeNull(); } }