public void TestTraktSyncRatingsRemovePostResponseDefaultConstructor()
        {
            var ratingsRemovePost = new TraktSyncRatingsRemovePostResponse();

            ratingsRemovePost.Deleted.Should().BeNull();
            ratingsRemovePost.NotFound.Should().BeNull();
        }
        public override async Task <ITraktSyncRatingsRemovePostResponse> ReadObjectAsync(JsonTextReader jsonReader, CancellationToken cancellationToken = default)
        {
            if (jsonReader == null)
            {
                return(await Task.FromResult(default(ITraktSyncRatingsRemovePostResponse)));
            }

            if (await jsonReader.ReadAsync(cancellationToken) && jsonReader.TokenType == JsonToken.StartObject)
            {
                var groupReader         = new SyncPostResponseGroupObjectJsonReader();
                var notFoundGroupReader = new SyncPostResponseNotFoundGroupObjectJsonReader();
                ITraktSyncRatingsRemovePostResponse syncRatingsRemovePostResponse = new TraktSyncRatingsRemovePostResponse();

                while (await jsonReader.ReadAsync(cancellationToken) && jsonReader.TokenType == JsonToken.PropertyName)
                {
                    var propertyName = jsonReader.Value.ToString();

                    switch (propertyName)
                    {
                    case JsonProperties.SYNC_RATINGS_REMOVE_POST_RESPONSE_PROPERTY_NAME_DELETED:
                        syncRatingsRemovePostResponse.Deleted = await groupReader.ReadObjectAsync(jsonReader, cancellationToken);

                        break;

                    case JsonProperties.SYNC_RATINGS_REMOVE_POST_RESPONSE_PROPERTY_NAME_NOT_FOUND:
                        syncRatingsRemovePostResponse.NotFound = await notFoundGroupReader.ReadObjectAsync(jsonReader, cancellationToken);

                        break;

                    default:
                        await JsonReaderHelper.ReadAndIgnoreInvalidContentAsync(jsonReader, cancellationToken);

                        break;
                    }
                }

                return(syncRatingsRemovePostResponse);
            }

            return(await Task.FromResult(default(ITraktSyncRatingsRemovePostResponse)));
        }