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);
        }
Beispiel #2
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";
            }
        }