예제 #1
0
        public void CreatePatch()
        {
            var mapper = new ApiProxyModelMapper();
            var model  = new ApiProxyRequestModel();

            model.SetProperties("A", "A");

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

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