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 BookingShouldBeConfirmed() { var booking = BookingDriver.GetBookingById(Browser, _returnedBookingId); booking.Status.Should().Be(RoomBookingStatus.ConfirmedByCustomer); }