public void InvoiceAccessorGuestBooking() { List <BookingDetails> guestBookings = null; List <HotelGuest> guest = HotelGuestAccessor.HotelGuestGet(); int id = (int)guest[guest.Count - 1].HotelGuestID; guestBookings = InvoiceAccessor.GetInvoiceBookingsByGuest(id); Assert.AreNotEqual(null, guestBookings); }
/// <summary> /// Pat Banks /// Created: 2015/02/25 /// Calls the InvoiceAccessor method that /// retrieves a list of bookings for a hotel guest /// </summary> /// <param name="hotelGuestId">Hotel guest ID</param> /// <returns>List of bookings for a hotel guest</returns> public List <BookingDetails> RetrieveGuestBookingDetailsList(int hotelGuestId) { try { return(InvoiceAccessor.GetInvoiceBookingsByGuest(hotelGuestId)); } catch (Exception ex) { throw ex; } }