Ejemplo n.º 1
0
        public void GetBookingsTest()
        {
            var bookingsApi = new RestfulBookerClient("admin", "password", "https://automationintesting.online");

            var response = bookingsApi.Bookings.GetBooking(1);

            Assert.That(response, Is.Not.Null);
        }
Ejemplo n.º 2
0
        public void CreateBooking()
        {
            var bookingsApi = new RestfulBookerClient("admin", "password", "https://automationintesting.online");
            var booking     = new Booking()
            {
                firstname       = "Johnny",
                lastname        = "Five",
                totalprice      = 123,
                bookingdates    = new BookingDates(DateTime.Today, DateTime.Today.AddDays(3)),
                additionalneeds = "Sound Proof Walls"
            };

            var response = bookingsApi.Bookings.CreateBooking(booking);

            Assert.That(response, Is.Not.Null);
        }