コード例 #1
0
        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);
        }
コード例 #2
0
        public void ActionPlanPatchServiceTests_ReturnsNull_WhenActionPlanPatchIsNull()
        {
            var result = _actionPlanPatchService.Patch(string.Empty, Arg.Any <ActionPlanPatch>());

            // Assert
            Assert.IsNull(result);
        }