protected override void Given() { _firstBookingToCreate = new RoomBookingInfo(null, RoomType.Single, new DateTime(2015, 06, 27), 3); _firstBookingId = BookingDriver.CreateBooking(Browser, _firstBookingToCreate); _secondBookingToCreate = new RoomBookingInfo(null, RoomType.SuperDeluxeSuite, new DateTime(2015, 05, 16), 2); _secondBookingId = BookingDriver.CreateBooking(Browser, _secondBookingToCreate); }
protected override void When() { _bookingToCreate = new RoomBookingInfo(null, RoomType.Suite, new DateTime(2014, 06, 05), 5); _browserResponse = BookingDriver.CreateBookingWithResponse(Browser, _bookingToCreate); _returnedBookingId = _browserResponse.Body.DeserializeJson <IdWrapper>(); _createdBooking = BookingDriver.GetBookingById(Browser, _returnedBookingId.Id); }
public void ShouldHaveClearedBookings() { var bookings = BookingDriver.GetAll(Browser); bookings.Should().BeEmpty(); }
protected override void Given() { BookingDriver.CreateBooking(Browser, new RoomBookingInfo(null, RoomType.Single, new DateTime(2016, 07, 27), 7)); }
public void BookingShouldBeConfirmed() { var booking = BookingDriver.GetBookingById(Browser, _returnedBookingId); booking.Status.Should().Be(RoomBookingStatus.ConfirmedByCustomer); }
protected override void When() { _browserResponse = BookingDriver.ConfirmBookingWithResponse(Browser, _returnedBookingId); }
protected override void Given() { _returnedBookingId = BookingDriver.CreateBooking(Browser, new RoomBookingInfo(null, RoomType.Suite, new DateTime(2014, 06, 05), 5)); }
protected override void When() { _actualBookings = BookingDriver.GetAll(Browser); }