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); }
public void cleanup() { TestCleanupAccessor.ClearOutInvoice(); TestCleanupAccessor.DeleteHotelGuest(); }
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(); }