Beispiel #1
0
        public void InvoiceAccessorGet()
        {//updated
            List <HotelGuest> guest = HotelGuestAccessor.HotelGuestGet(100);
            int id = (int)guest[guest.Count - 1].HotelGuestID;

            Invoice invoice = InvoiceAccessor.GetInvoiceByGuest(id);

            Assert.AreEqual(id, invoice.HotelGuestID);
        }
Beispiel #2
0
 /// <summary>
 /// Pat Banks
 /// Created: 2015/02/2015
 /// Calls the InvoiceAccessor method that
 /// retrieves Invoice information for a selected hotel guest
 /// </summary>
 /// <remarks>
 /// Pat Banks
 /// Updated: 2015/02/27
 /// </remarks>
 /// <param name="hotelGuestId">Hotel Guest ID matching a HotelGuest object/record</param>
 /// <returns>Invoice information for a hotel guest</returns>
 public InvoiceDetails RetrieveInvoiceByGuest(int hotelGuestId)
 {
     try
     {
         return(InvoiceAccessor.GetInvoiceByGuest(hotelGuestId));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }