public void TestInsertBooking()
        {
            var booking = new Booking()
            {
                Name        = "test add",
                Email       = "*****@*****.**",
                Address     = "address test",
                SeatId      = "J10",
                MeetingWeek = "6"
            };

            _bookingRepository.InsertBooking(booking);

            //TODO Query back results from test
            var query = session.QueryOver <Booking>().Where(x => x.Name == booking.Name).SingleOrDefault();

            Assert.IsNotNull(query);

            session.Delete(query);
            session.Flush();
        }
Exemple #2
0
        public Repository.Booking InsertBooking(Repository.Booking booking)
        {
            var bookingRecord = _bookingCRUDRepository.InsertBooking(booking);

            return(bookingRecord);
        }