예제 #1
0
 public void MedicalExam()
 {
     MedicalCare.ClickCustom(driver);
     int[] index = new int[] { 14, 17, 20 };
     for (int i = 0; i < index.Length; i++) // Select Animal Symptoms
     {
         FindBy(By.XPath("//*[@id='content']/div[3]/section/section/div/div[2]/div/div/div/div[1]/div/div/div/div[2]/div[" + index[i] + "]//i[1]")).ClickCustom(driver);
     }
     comments.SendKeysWrapper("Medical Exam Comments", driver);
     urgentChkBox.ClickCustom(driver);
     submit.ClickCustom(driver);
 }
예제 #2
0
        private static void performMedicalCare()
        {
            ListAllPatients();
            ListAllProcedures();

            MedicalCare medicalCare = new MedicalCare();


            Console.WriteLine("### Insert the id of the Patient ###");
            int patientId = int.Parse(Console.ReadLine());

            int count = 1;

            clinic.GetPatients().ForEach((item) =>
            {
                if (count == patientId)
                {
                    medicalCare.Patient = item;
                }

                count++;
            });
            Console.WriteLine("### Patient added to the medical care: " + medicalCare.Patient.Name + " ###");



            Console.WriteLine("### Insert the id of the Procedure ###");
            int procedureId = int.Parse(Console.ReadLine());

            int count2 = 1;

            clinic.GetProcedures().ForEach((item) =>
            {
                if (count2 == patientId)
                {
                    medicalCare.Procedure = item;
                }

                count2++;
            });
            Console.WriteLine("### Procedure added to the medical care " + medicalCare.Procedure.Name + " ###");


            medicalCare.Date = new DateTime();


            clinic.MedicalCares.Add(medicalCare);
        }