Beispiel #1
0
        public void CheckForExistingBooking()
        {
            var booking = new Booking()
            {
                Name        = "James Blackburn",
                Email       = "*****@*****.**",
                Address     = "108 Cranbourne Park",
                SeatId      = "A1",
                MeetingWeek = "1"
            };

            var result = _bookingRepository.CheckIfBookingAvailable(booking);

            Assert.IsNotNull(result);
        }
Beispiel #2
0
        public bool CheckBookingExists(Booking booking)
        {
            var result = _bookingRepository.CheckIfBookingAvailable(booking);

            if (result == null)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }