コード例 #1
0
        public void CreatePatch()
        {
            var mapper = new ApiCountryModelMapper();
            var model  = new ApiCountryRequestModel();

            model.SetProperties("A");

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

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