public string PatchResource(string customerJson, CustomerPatch customerPatch) { if (string.IsNullOrEmpty(customerJson)) { return(null); } if (customerPatch == null) { return(null); } customerPatch.SetDefaultValues(); return(_customerPatchService.Patch(customerJson, customerPatch)); }
public void CustomerPatchServiceTests_ReturnsNull_WhenOutcomePatchIsNull() { var result = _customerPatchService.Patch(string.Empty, Arg.Any <CustomerPatch>()); // Assert Assert.IsNull(result); }