Ejemplo n.º 1
0
        public void TestGetBookingNumbersAccessor()
        {
            //Checks using the dummy itemListing, returns a BookingNumbers object(nums)
            //Asserts that a record is found, that nums is not null
            List <BookingNumbers> nums = BookingAccessor.GetBookingNumbers(100);

            Assert.IsNotNull(nums);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Matt Lapka
 /// Created: 2015/04/14
 /// Retrieves numbers from a specific event listing
 /// Not cached since it will differ each time
 /// </summary>
 /// <param name="itemListID">The ID of event listing</param>
 /// <returns>Names of hotel guests, room numbers, and quantities of tickets for each booking related to that item listing</returns>
 public List <BookingNumbers> RetrieveBookingNumbers(int itemListID)
 {
     try
     {
         return(BookingAccessor.GetBookingNumbers(itemListID));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }