Ejemplo n.º 1
0
        public void ActionStatus_Completed_Succeed()
        {
            ActionViewModel actionViewModel = ActionMockData.GetActionViewModel();

            mockActionRepository.Setup(a => a.ActionCompleted(It.IsAny <int>(), It.IsAny <bool>(), It.IsAny <int>(), It.IsAny <int>(), It.IsAny <bool>(), It.IsAny <int>(), It.IsAny <DateTime>(), It.IsAny <bool>(), It.IsAny <int>())).Verifiable("Unable to call Actioncompleted method");
            CompletedActionResponse response = actionService.ActionStatus(new CompletedActionRequest()
            {
                actionId = ACTION_ID, contactId = CONTACT_ID, isCompleted = true
            });

            mockRepository.VerifyAll();
            Assert.AreEqual(null, response.Exception);
        }