public FormViewModel DeleteForm(DeleteFormRequest formIds) { DeleteFormRequest request = new DeleteFormRequest() { FormIDs = formIds.FormIDs }; DeleteFormResponse response = formService.DeleteForm(request); return(response.FormViewModel); }
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(); }