Beispiel #1
0
        public void DeleteBookingsByArchiveCodeID()
        {
            //Arrange
            var archiveBookingEngine       = new ArchiveBookingEngine();
            List <ArchiveBooking> bookings = new List <ArchiveBooking>();

            //Act
            archiveBookingEngine.DeleteArchiveBookingsByArchiveCodeID(2);
            bookings = archiveBookingEngine.GetArchiveBookingsByArchiveCode("0101");

            //Assert
            Assert.Empty(bookings);
        }
Beispiel #2
0
        public void DeleteBookingsByArchiveCodeID()
        {
            //Arrange
            var archiveBookingEngine       = new ArchiveBookingEngine();
            List <ArchiveBooking> bookings = new List <ArchiveBooking>();

            //Act
            archiveBookingEngine.DeleteArchiveBookingsByArchiveCodeID(2);
            bookings = archiveBookingEngine.GetArchiveBookingsByArchiveCode("0101");

            //Assert
            foreach (ArchiveBooking booking in bookings)
            {
                Assert.Null(booking.DocumentNumber);
            }
        }