public void WhenIEnrollTheSelectedPatientWithBelowDetailsForPatient_(string Patient, Table table)
        {
            IEnumerable <EnrollPatientData> PatientData = table.CreateSet <EnrollPatientData>();
            List <EnrollPatientData>        Data        = (List <EnrollPatientData>)PatientData;

            BP_PatientUtilities.EnrollAPatient(Patient, Data[0]);
        }
        public void WhenIEnterAddPatientDataAsBelow(Table table)
        {
            List <string> Failed = new List <string>();
            IEnumerable <AddPatientData> PatientData  = table.CreateSet <AddPatientData>();
            List <AddPatientData>        PatientsList = (List <AddPatientData>)PatientData;

            BP_PatientUtilities.AddPatients(PatientsList, out Failed);
        }
Ejemplo n.º 3
0
 public void ThenISeePatientDetailsPageFor_(string PatientID)
 {
     if (!BP_PatientUtilities.VerifyDetailsOnPatientDetailsPage(PatientID, string.Empty, string.Empty, string.Empty))
     {
         ScenarioContext.Current["Comments"]  = ScenarioContext.Current["Comments"] + "Patient details page is not displayed for '" + PatientID + "' on selecting the patient. \n";
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
Ejemplo n.º 4
0
 public void GivenISelectThePatientFromPatientsTable_(string PatientDet)
 {
     if (!BP_PatientUtilities.SelectPatientFromPatientsTable(PatientDet))
     {
         ScenarioContext.Current["Comments"]  = ScenarioContext.Current["Comments"] + "Patient '" + PatientDet + "' is not selected. \n";
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
Ejemplo n.º 5
0
        public void WhenIEnrollThePatientWithBelowData_(string Patient, Table table)
        {
            IEnumerable <EnrollPatientData> PatientData = table.CreateSet <EnrollPatientData>();
            List <EnrollPatientData>        Data        = (List <EnrollPatientData>)PatientData;

            if (!BP_PatientUtilities.EnrollAPatient(Patient, Data[0]))
            {
                ScenarioContext.Current["Comments"]  = ScenarioContext.Current["Comments"] + "Unable to enroll patient '" + Patient + "'. \n";
                ScenarioContext.Current["ActResult"] = "Failed";
            }
        }
Ejemplo n.º 6
0
        public void WhenIAddBelowPatientWithoutInitials_(Table table)
        {
            StringBuilder FailedPats = new StringBuilder();
            List <string> Failed     = new List <string>();
            IEnumerable <AddPatientData> PatientData  = table.CreateSet <AddPatientData>();
            List <AddPatientData>        PatientsList = (List <AddPatientData>)PatientData;

            BP_PatientUtilities.AddPatients(PatientsList, out Failed);
            if (Failed.Count > 0)
            {
                foreach (string patID in Failed)
                {
                    FailedPats.Append(patID + ",");
                }
                ScenarioContext.Current["Comments"]  = ScenarioContext.Current["Comments"] + "Failed to add patient with ID:" + FailedPats + " \n";
                ScenarioContext.Current["ActResult"] = "Failed";
            }
        }
Ejemplo n.º 7
0
        public void ThenISeeBelowPatientsAddedInThePatientsTable_(Table table)
        {
            StringBuilder FailedPats            = new StringBuilder();
            IEnumerable <PatientTableData> Data = table.CreateSet <PatientTableData>();
            List <PatientTableData>        List = (List <PatientTableData>)Data;

            foreach (PatientTableData Pat in List)
            {
                if (!BP_PatientUtilities.VerifyPatientInPatientsTable(Pat.PatientID))
                {
                    FailedPats.Append(Pat.PatientID + ",");
                }
            }
            if (FailedPats.Equals(string.Empty))
            {
                ScenarioContext.Current["Comments"]  = ScenarioContext.Current["Comments"] + "Patients with ID: " + FailedPats + " is/are not displayed in patients table. \n";
                ScenarioContext.Current["ActResult"] = "Failed";
            }
        }
 public void WhenISelectPatient_(string PatientDet)
 {
     BP_PatientUtilities.SelectPatientFromPatientsTable(PatientDet);
 }