Beispiel #1
0
        public async Task Test_SyncRecommendationsPostResponseGroupObjectJsonReader_ReadObject_From_Json_String_Empty()
        {
            var traktJsonReader = new SyncRecommendationsPostResponseGroupObjectJsonReader();
            ITraktSyncRecommendationsPostResponseGroup traktSyncRecommendationsPostResponseGroup = await traktJsonReader.ReadObjectAsync(string.Empty);

            traktSyncRecommendationsPostResponseGroup.Should().BeNull();
        }
Beispiel #2
0
        public async Task Test_SyncRecommendationsPostResponseGroupObjectJsonReader_ReadObject_From_Json_String_Complete()
        {
            var traktJsonReader = new SyncRecommendationsPostResponseGroupObjectJsonReader();
            ITraktSyncRecommendationsPostResponseGroup traktSyncRecommendationsPostResponseGroup = await traktJsonReader.ReadObjectAsync(JSON_COMPLETE);

            traktSyncRecommendationsPostResponseGroup.Should().NotBeNull();
            traktSyncRecommendationsPostResponseGroup.Movies.Should().Be(1);
            traktSyncRecommendationsPostResponseGroup.Shows.Should().Be(2);
        }