Example #1
0
        public void TestSelectVetAppointmentsByActive()
        {
            // Arrange
            List <AnimalVetAppointment> activeList;
            List <AnimalVetAppointment> inactiveList;
            IVetAppointmentManager      manager =
                new VetAppointmentManager(_vetAppointmentAccessor);

            // Act
            activeList   = manager.RetrieveVetAppointmentsByActive(true);
            inactiveList = manager.RetrieveVetAppointmentsByActive(false);

            // Assert
            Assert.AreEqual(2, activeList.Count);
            Assert.AreEqual(1, inactiveList.Count);
        }
Example #2
0
        public void TestVetAppointmentsManagerRetrieveInactiveAppointments()
        {
            // Arrange
            List <AnimalVetAppointment> vetAppointments;
            IVetAppointmentManager      vetAppointmentManager = new VetAppointmentManager(_vetAppointmentAccessor, _vetAppointments);

            // Act
            vetAppointments = vetAppointmentManager.RetrieveVetAppointmentsByActive(false);

            // Assert
            Assert.AreEqual(1, vetAppointments.Count);
        }