Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public void BookingShouldBeConfirmed()
        {
            var booking = BookingDriver.GetBookingById(Browser, _returnedBookingId);

            booking.Status.Should().Be(RoomBookingStatus.ConfirmedByCustomer);
        }