public async Task Test_SyncRecommendationsPostMovieObjectJsonReader_ReadObject_From_Json_String_Empty() { var traktJsonReader = new SyncRecommendationsPostMovieObjectJsonReader(); ITraktSyncRecommendationsPostMovie traktSyncRecommendationsPostMovie = await traktJsonReader.ReadObjectAsync(string.Empty); traktSyncRecommendationsPostMovie.Should().BeNull(); }
public async Task Test_SyncRecommendationsPostMovieObjectJsonReader_ReadObject_From_Json_String_Complete() { var traktJsonReader = new SyncRecommendationsPostMovieObjectJsonReader(); ITraktSyncRecommendationsPostMovie traktSyncRecommendationsPostMovie = await traktJsonReader.ReadObjectAsync(JSON_COMPLETE); traktSyncRecommendationsPostMovie.Should().NotBeNull(); traktSyncRecommendationsPostMovie.Title.Should().Be("Batman Begins"); traktSyncRecommendationsPostMovie.Year.Should().Be(2005); traktSyncRecommendationsPostMovie.Ids.Should().NotBeNull(); traktSyncRecommendationsPostMovie.Ids.Trakt.Should().Be(1U); traktSyncRecommendationsPostMovie.Ids.Slug.Should().Be("batman-begins-2005"); traktSyncRecommendationsPostMovie.Ids.Imdb.Should().Be("tt0372784"); traktSyncRecommendationsPostMovie.Ids.Tmdb.Should().Be(272U); traktSyncRecommendationsPostMovie.Notes.Should().Be("One of Chritian Bale's most iconic roles."); }