public void AddAppointment() { AppointmentProvider provider = new AppointmentProvider(); int initial_length = provider.getAppointmentsForPatient("nemec").Count; provider.addAppointment("nemec", "no area", "doctor", DateTime.Now); Assert.IsTrue(initial_length + 1 == provider.getAppointmentsForPatient("nemec").Count); }
public void AddAppointment() { AppointmentProvider provider = new AppointmentProvider(); int initial_length = provider.getAppointmentsForPatient("nemec").Count; provider.addAppointment("nemec", "no area", "doctor", DateTime.Now); Assert.IsTrue(initial_length + 1 == provider.getAppointmentsForPatient("nemec").Count); }
public void scheduleAppointment(string user, string specialization, string doctor, DateTime time) { _provider.addAppointment(user, specialization, doctor, time); }