예제 #1
0
        public void HotelAccessorAdd()
        {
            int changed = HotelGuestAccessor.HotelGuestAdd(new HotelGuest("Fake", "Person", "1111 Fake St.", "", new CityState("52641", "Mt. Pleasant", "IA"), "5556667777", "*****@*****.**", "234234234", "3456", true));

            //This line below must remain here, helps to properly track and delete invoice, which is linked to Guest record
            TestCleanupAccessor.ClearOutInvoice();
            //Asserts that the update has been made
            Assert.AreEqual(2, changed);
        }
예제 #2
0
 public void cleanup()
 {
     TestCleanupAccessor.ClearOutInvoice();
     TestCleanupAccessor.DeleteHotelGuest();
 }
예제 #3
0
 public void HotelAccessorAddFail()
 {
     HotelGuestAccessor.HotelGuestAdd(new HotelGuest("Fake", "Person", "1111 Fake St.", "", new CityState("52641", "Mt. Pleasant", "IA"), "5556667777", "*****@*****.**", "000", "5678", true));
     //This line below must remain here, helps to properly track and delete invoice
     TestCleanupAccessor.ClearOutInvoice();
 }