示例#1
0
        public FormViewModel DeleteForm(DeleteFormRequest formIds)
        {
            DeleteFormRequest request = new DeleteFormRequest()
            {
                FormIDs = formIds.FormIDs
            };
            DeleteFormResponse response = formService.DeleteForm(request);

            return(response.FormViewModel);
        }
示例#2
0
        public void DeleteForm_ValidForm_Succeed()
        {
            int[] DeleteFormAray = FormMockData.GetDeleteFormRequest();
            mockFormRepository.Setup(mnt => mnt.DeactivateForm(It.IsAny <int[]>())).Verifiable();
            DeleteFormRequest req = new DeleteFormRequest()
            {
                FormIDs = DeleteFormAray
            };
            DeleteFormResponse response = formService.DeleteForm(req);

            mockRepository.VerifyAll();
        }