public void Functional_AddAppointment() { try { if (!day.AddAppointment(new Appointment(100, 10, 1), 0)) { throw new Exception(); } if (!IsCorrectPatientID(100, 0)) { throw new Exception(); } } catch (Exception e) { Logging.Log(e, "DayTests", "Functional_AddAppointment"); Assert.Fail(); } }
public void AddAppointment(Day day, Appointment appointment) { day.AddAppointment(appointment); store.AddAppointment(appointment); }