/// <summary> /// Creator: Ethan Murphy /// Created: 2/7/2020 /// Approver: Carl Davis 2/14/2020 /// Approver: Chuck Baxter 2/14/2020 /// /// Default constructor that initializes the fake vet appointment accessor /// and vet appointment manager, then retrieves a list of all vet appointments /// </summary> /// <remarks> /// Updater: /// Updated: /// Update: /// </remarks> public VetAppointmentManagerTests() { _vetAppointmentAccessor = new FakeVetAppointmentAccessor(); IVetAppointmentManager vetAppointmentManager = new VetAppointmentManager(_vetAppointmentAccessor); _vetAppointments = vetAppointmentManager.RetrieveAllVetAppointments(); }
public void TestVetAppointmentManagerRetrieveAllAppointments() { // Arrange List <AnimalVetAppointment> vetAppointments; IVetAppointmentManager vetAppointmentManager = new VetAppointmentManager(_vetAppointmentAccessor); // Act vetAppointments = vetAppointmentManager.RetrieveAllVetAppointments(); // Assert Assert.AreEqual(3, vetAppointments.Count); }