public void CancelBookingsTest() { Business newInstance = new Business(); newInstance.AddPlay("Golden Egg", "Intel", 0, DateTime.Now); Customer newCustomer = new Customer("0", "Jack Morley", false, "00000000000"); List <string> location = new List <string> { "BUE05" }; newInstance.AddBooking("0", "0", location.Count, location); Assert.AreEqual(true, newInstance.CancelBookings("0", "0")); }
public void ConfirmBookingTest() { Business newInstance = new Business(); newInstance.AddPlay("Golden Egg", "Intel", 0, DateTime.Now); Customer newCustomer = new Customer("0", "Jack Morley", false, "00000000000"); List <string> location = new List <string> { "BUE05" }; newInstance.AddBooking("0", "0", location.Count, location); newInstance.ConfirmBooking("0", "0"); List <Tickets> returnTicket = newInstance.FetchTicketByCustomer("0"); Assert.AreEqual(true, returnTicket[0].IsConfirmed()); }