public void ActionPlanPatchServiceTests_CheckDateActionPlanSentToCustomerIsUpdated_WhenPatchIsCalled() { var actionPlanPatch = new Models.ActionPlanPatch { DateActionPlanSentToCustomer = DateTime.MaxValue }; var patchedActionPlan = _actionPlanPatchService.Patch(_json, actionPlanPatch); var actionPlan = JsonConvert.DeserializeObject <Models.ActionPlan>(patchedActionPlan); var dateActionPlanSentToCustomer = actionPlan.DateActionPlanSentToCustomer; // Assert Assert.AreEqual(DateTime.MaxValue, dateActionPlanSentToCustomer); }
public void ActionPlanPatchServiceTests_CheckPriorityCustomerIsUpdated_WhenPatchIsCalled() { var actionPlanPatch = new Models.ActionPlanPatch { PriorityCustomer = PriorityCustomer.NotAPriorityCustomer }; var patchedActionPlan = _actionPlanPatchService.Patch(_json, actionPlanPatch); var actionPlan = JsonConvert.DeserializeObject <Models.ActionPlan>(patchedActionPlan); var priorityCustomer = actionPlan.PriorityCustomer; // Assert Assert.AreEqual(PriorityCustomer.NotAPriorityCustomer, priorityCustomer); }