public void CancelAppointment() { AppointmentProvider provider = new AppointmentProvider(); List<Appointment> apps = provider.getAppointmentsForPatient("nemec"); if(apps.Count == 0) { AddAppointment(); } provider.cancelAppointment(apps[0].id, true); Assert.AreEqual(apps.Count - 1, provider.getAppointmentsForPatient("nemec").Count); }
public void CancelAppointment() { AppointmentProvider provider = new AppointmentProvider(); List <Appointment> apps = provider.getAppointmentsForPatient("nemec"); if (apps.Count == 0) { AddAppointment(); } provider.cancelAppointment(apps[0].id, true); Assert.AreEqual(apps.Count - 1, provider.getAppointmentsForPatient("nemec").Count); }
public void cancelAppointment(int id) { _provider.cancelAppointment(id); }