Beispiel #1
0
 public void Can_Delete_a_Booking()
 {
     //Go to Bookings Page
     BookingPage.GoTo();
     //delete the first booking from the list
     BookingPage.DeleteFirstBooking()
     .Delete();
     //verify that the booking id is successfully deleted
     Assert.AreSame(BookingPage.ConfirmDeletionMessage(), "Not Found", "delete was unsuccessful");
 }
 public void Can_Create_a_Booking_Using_BookingCreator()
 {
     //Go to Bookings Page,get the bookings count and store
     BookingPage.GoTo();
     BookingPage.StoreCount();
     //create a new booking and save
     BookingCreator.CreateBooking();
     //Go to Bookings Page,get the new bookings count (should be greater)
     BookingPage.GoTo();
     Assert.AreEqual(BookingPage.PreviousBookingsCount + 1, BookingPage.CurrentBookingsCount, "Count of bookings did not increase");
 }
 public void Can_Create_a_Booking()
 {
     //Go to Bookings Page,get the bookings count and store
     BookingPage.GoTo();
     BookingPage.StoreCount();
     //create a new booking and save
     BookingPage.CreateBooking("TestFN", "TestSN")
     .WithDetails("152.23", "true", "2018-11-07", "2018-11-09")
     .Save();
     //Go to Bookings Page,get the new bookings count (should be greater)
     BookingPage.GoTo();
     Assert.AreEqual(BookingPage.PreviousBookingsCount + 1, BookingPage.CurrentBookingsCount, "Count of bookings did not increase");
 }
Beispiel #4
0
        public static void CreateBooking()
        {
            BookingPage.GoTo();
            FirstName = "TestWFFN";
            SurName   = "TestWFSN";
            Price     = "235.67";
            Deposit   = "true";
            CheckIn   = "2018-11-10";
            CheckOut  = "2018-11-15";

            BookingPage.CreateBooking(FirstName, SurName)
            .WithDetails(Price, Deposit, CheckIn, CheckOut)
            .Save();
        }
 public void Init()
 {
     Driver.Initialize();
     BookingPage.GoTo();
 }