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

            model.SetProperties("A");

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

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