Пример #1
0
        public void WhenTheUserCreatesANewBooking()
        {
            BookingDataGenerator bookingDataGenerator = new BookingDataGenerator();
            Booking bookingData = bookingDataGenerator.Generate();

            bookingPage.CreateBooking(bookingData);

            ScenarioContext.Current["BookingData"] = bookingData;
        }
Пример #2
0
        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();
        }