Example #1
0
        public void CreatePatch()
        {
            var mapper = new ApiPipelineStepServerModelMapper();
            var model  = new ApiPipelineStepServerRequestModel();

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

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

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