public static List <Physician> GetRandomPhysicians(int count) { List <Physician> physicians = new List <Physician>(); foreach (var result in RandomPersonGenerator.GetRandomResult(count).Results) { Physician patient = new Physician(result); physicians.Add(patient); } return(physicians); }
public static List <Exam> GetRandomExamsWithPhysicians(int count) { var exams = new List <Exam>(); var physicians = Physician.GetRandomPhysicians(count); int i = 0; foreach (var patient in Patient.GetRandomPatients(count)) { Exam exam = new Exam(patient); exam.Attending = physicians[i]; exams.Add(exam); i++; } return(exams); }