public void PatientSaveTest() { string lastName = GenString(_r.Next(4, 9)); string firstName = GenString(_r.Next(4, 9)); OpenConnection(); Credentials c = new Credentials(lastName + firstName + "@testPatient.com", Utils.Encrypter.GetMD5("0000"), Utils.UserTypes.PATIENT); Patient p = new Patient(credentialsService.Save(c), lastName, firstName, "instsav363", "address", System.DateTime.Now, "geneticsDis", "54468413"); patientService.Save(p); Assert.IsNotNull(patientService.FindAllByProperty(Utils.PatientTableProperties.LastName, p.LastName)); CloseConnection(); }