public void CreatePatch() { var mapper = new ApiInterruptionModelMapper(); var model = new ApiInterruptionRequestModel(); model.SetProperties(DateTimeOffset.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A", "A", "A", "A", "A", "A", "A"); JsonPatchDocument <ApiInterruptionRequestModel> patch = mapper.CreatePatch(model); var response = new ApiInterruptionRequestModel(); patch.ApplyTo(response); response.Created.Should().Be(DateTimeOffset.Parse("1/1/1987 12:00:00 AM")); response.EnvironmentId.Should().Be("A"); response.JSON.Should().Be("A"); response.ProjectId.Should().Be("A"); response.RelatedDocumentIds.Should().Be("A"); response.ResponsibleTeamIds.Should().Be("A"); response.Status.Should().Be("A"); response.TaskId.Should().Be("A"); response.TenantId.Should().Be("A"); response.Title.Should().Be("A"); }