public void Patient_GetMissedAppointments_ReturnsAllMissedAppointments() { DateTime now = new DateTime(2017, 06, 22); Doctor newDoctor = new Doctor("Tom", "tom567", "567", "Cardiology"); newDoctor.Save(); Patient newPatient = new Patient("John", "john123", "123", new DateTime(1996, 04, 25)); newPatient.Save(); newPatient.CreateAppointment(new DateTime(2017, 05, 21), newDoctor, "Yearly physical"); newPatient.CreateAppointment(new DateTime(2017, 05, 26), newDoctor, "Heart check"); newPatient.CreateAppointment(new DateTime(2017, 06, 25), newDoctor, "Vaccination"); List <Appointment> testList = newPatient.GetMissedAppointments(now); List <Appointment> controlList = new List <Appointment> { new Appointment(new DateTime(2017, 05, 21), newDoctor.Id, newPatient.Id, "Yearly physical", newPatient.GetAppointments()[0].Id), new Appointment(new DateTime(2017, 05, 26), newDoctor.Id, newPatient.Id, "Heart check", newPatient.GetAppointments()[1].Id) }; Assert.Equal(controlList, testList); }