示例#1
0
        /// <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();
        }
 /// <summary>
 /// Creator: Ethan Murphy
 /// Created: 2/7/2020
 /// Approver: Carl Davis 2/14/2020
 /// Approver: Chuck Baxter 2/14/2020
 ///
 /// Single argument constructor
 /// </summary>
 /// <remarks>
 /// Updater:
 /// Updated:
 /// Update:
 /// </remarks>
 /// <param name="vetAppointmentAccessor">An instance of vet appointment accessor</param>
 public VetAppointmentManager(IVetAppointmentAccessor vetAppointmentAccessor)
 {
     _vetAppointmentAccessor = vetAppointmentAccessor;
 }
 /// <summary>
 /// Creator: Ethan Murphy
 /// Created: 2/7/2020
 /// Approver: Carl Davis 2/14/2020
 /// Approver: Chuck Baxter 2/14/2020
 ///
 /// Full constructor
 /// </summary>
 /// <remarks>
 /// Updater:
 /// Updated:
 /// Update:
 /// </remarks>
 /// <param name="vetAppointmentAccessor">An instance of vet appointment accessor</param>
 /// <param name="appointments">A list of animal vet appointments</param>
 public VetAppointmentManager(IVetAppointmentAccessor vetAppointmentAccessor, List <AnimalVetAppointment> appointments)
 {
     _vetAppointmentAccessor = vetAppointmentAccessor;
     _vetAppointments        = appointments;
 }
 /// <summary>
 /// Creator: Ethan Murphy
 /// Created: 2/7/2020
 /// Approver: Carl Davis 2/14/2020
 /// Approver: Chuck Baxter 2/14/2020
 ///
 /// A no argument constructor that intializes the vet appointment
 /// accessor and retrieves a list of all vet appointments
 /// </summary>
 /// <remarks>
 /// Updater:
 /// Updated:
 /// Update:
 /// </remarks>
 public VetAppointmentManager()
 {
     _vetAppointmentAccessor = new VetAppointmentAccessor();
     _vetAppointments        = RetrieveVetAppointmentsByActive(true);
 }