public string PatchResource(string actionPlanJson, ActionPlanPatch actionPlanPatch) { if (string.IsNullOrEmpty(actionPlanJson)) { return(null); } if (actionPlanPatch == null) { return(null); } actionPlanPatch.SetDefaultValues(); var updatedActionPlan = _actionPlanPatchService.Patch(actionPlanJson, actionPlanPatch); return(updatedActionPlan); }
public void ActionPlanPatchServiceTests_ReturnsNull_WhenActionPlanPatchIsNull() { var result = _actionPlanPatchService.Patch(string.Empty, Arg.Any <ActionPlanPatch>()); // Assert Assert.IsNull(result); }