コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }