public void WhenTheUserCreatesANewBooking() { BookingDataGenerator bookingDataGenerator = new BookingDataGenerator(); Booking bookingData = bookingDataGenerator.Generate(); bookingPage.CreateBooking(bookingData); ScenarioContext.Current["BookingData"] = bookingData; }
public void GivenThereAreOneOrMoreBookings() { if (bookingPage.bookingListItems.Count() == 0) { BookingDataGenerator bookingDataGenerator = new BookingDataGenerator(); Booking bookingData = bookingDataGenerator.Generate(); bookingPage.CreateBooking(bookingData); } ScenarioContext.Current["SavedBookingCount"] = bookingPage.bookingListItems.Count(); }