public void MapResponseToRequest()
        {
            var mapper = new ApiVPersonModelMapper();
            var model  = new ApiVPersonResponseModel();

            model.SetProperties(1, "A");
            ApiVPersonRequestModel response = mapper.MapResponseToRequest(model);

            response.PersonName.Should().Be("A");
        }
        public void MapClientRequestToResponse()
        {
            var mapper = new ApiVPersonModelMapper();
            var model  = new ApiVPersonClientRequestModel();

            model.SetProperties("A");
            ApiVPersonClientResponseModel response = mapper.MapClientRequestToResponse(1, model);

            response.Should().NotBeNull();
            response.PersonName.Should().Be("A");
        }
        public void CreatePatch()
        {
            var mapper = new ApiVPersonModelMapper();
            var model  = new ApiVPersonRequestModel();

            model.SetProperties("A");

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

            patch.ApplyTo(response);
            response.PersonName.Should().Be("A");
        }