public async void TestUpdate()
        {
            var model = await this.CreateRecord();

            ApiPostLinksModelMapper mapper = new ApiPostLinksModelMapper();

            UpdateResponse <ApiPostLinksResponseModel> updateResponse = await this.Client.PostLinksUpdateAsync(model.Id, mapper.MapResponseToRequest(model));

            updateResponse.Record.Should().NotBeNull();
            updateResponse.Success.Should().BeTrue();

            await this.Cleanup();
        }
        public void MapResponseToRequest()
        {
            var mapper = new ApiPostLinksModelMapper();
            var model  = new ApiPostLinksResponseModel();

            model.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1, 1, 1);
            ApiPostLinksRequestModel response = mapper.MapResponseToRequest(model);

            response.CreationDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.LinkTypeId.Should().Be(1);
            response.PostId.Should().Be(1);
            response.RelatedPostId.Should().Be(1);
        }
        public void CreatePatch()
        {
            var mapper = new ApiPostLinksModelMapper();
            var model  = new ApiPostLinksRequestModel();

            model.SetProperties(DateTime.Parse("1/1/1987 12:00:00 AM"), 1, 1, 1);

            JsonPatchDocument <ApiPostLinksRequestModel> patch = mapper.CreatePatch(model);
            var response = new ApiPostLinksRequestModel();

            patch.ApplyTo(response);
            response.CreationDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.LinkTypeId.Should().Be(1);
            response.PostId.Should().Be(1);
            response.RelatedPostId.Should().Be(1);
        }