Пример #1
0
 public DeletedAction(ICommandService commandService,
                      DeleteAppointment deleteAppointmentCommand,
                      Patient patient)
 {
     this.commandService           = commandService;
     this.deleteAppointmentCommand = deleteAppointmentCommand;
     this.patient = patient;
 }
Пример #2
0
        public void executeTest()
        {
            //prepare test
            List <string>     actual      = new List <string>();
            DeleteAppointment myDA        = new DeleteAppointment("25");
            IDBConnect        dbConnector = new dbCommTEST();

            myDA.setDBConnectInstance(dbConnector);
            actual = myDA.execute();
            //prepare expected values
            List <string> expected = new List <string>();

            expected.Add("03");
            expected.Add("1");
            Assert.AreEqual(expected[0], actual[0]);
            Assert.AreEqual(expected[1], actual[1]);
        }
Пример #3
0
 public void AppointmentButtons(string ActionBtn)
 {
     if (ActionBtn == "Save")
     {
         SaveAppointment.Click();
     }
     else if (ActionBtn == "Delete")
     {
         DeleteAppointment.Click();
     }
     else if (ActionBtn == "Cancel")
     {
         AppointmentCloseButton.Click();
     }
     else if (ActionBtn == "DMS")
     {
         SendToDMS.Click();
     }
     else if (ActionBtn == "Refresh")
     {
         AppointmentRefreshBtn.Click();
     }
     CustomWait.WaitFortheLoadingIconDisappear2000();
 }
Пример #4
0
 public DeletedAction BuildDeletedAction(DeleteAppointment command, Patient patient)
 {
     return(new DeletedAction(commandService, command, patient));
 }