public void GetAllTest() { // Arrange IList<Appointment> appointments = new List<Appointment> { new Appointment { ID = 1 }, new Appointment { ID = 2 } }; IAppointmentRepository repository = new AppointmentRepository(appointments); // Act IList<Appointment> result = repository.GetAll().ToList(); // Assert Assert.AreEqual(1, result[0].ID); Assert.AreEqual(2, result[1].ID); }