public static Patient GeneratePatient(HospitalContext context) { string firstName = NameGenerator.GenerateFirstName(); string lastName = NameGenerator.GenerateLastName(); string address = AddressGenerator.GenerateAddress(); string email = EmailGenerator.GenerateEmail(firstName + lastName); Patient patient = new Patient() { FirstName = firstName, LastName = lastName, Address = address, Email = email }; patient.Visitations = SeedVisitations(patient); patient.Diagnoses = SeedDiagnoses(patient); return(patient); }
public static Patient NewPatient(HospitalContext context) { string firstName = NameGenerator.FirstName(); string lastName = NameGenerator.LastName(); var patient = new Patient() { FirstName = firstName, LastName = lastName, Email = EmailGenerator.NewEmail(firstName + lastName), Address = AddressGenerator.NewAddress(), }; patient.Visitations = GenerateVisitations(patient); patient.Diagnoses = GenerateDiagnoses(patient); return(patient); }