public void ThenMyBookingIsNotPresent() { JObject response = BaseAPITests.getBooking(this.bookingRef); string ref = response.GetValue("bookingref").ToString(); Assert.That(ref, Is.EqualTo(this.bookingRef)); }
public void WhenICreateTheFollowingBooking(Table table) { var row = table.Rows[0]; JObject response = BaseAPITests.createBooking( row["firstname"], row["lastname"], row["totalprice"], row["depositpaid"], row["checkin"], row["checkout"], row["additionalneeds"] ); this.bookingRef = response.GetValue("bookingref").ToString(); }
public void ThenISeeMyBookingInResponse(Table table) { JObject response = BaseAPITests.GetResponseBody(); }
public void WhenIDeleteTheBooking() { BaseAPITests.deleteBooking(this.bookingRef); }
public void WhenIUpdateTheBookingWith(Table table) { var row = table.Rows[0]; BaseAPITests.updateBookingFirstname(this.bookingRef, row["firstrname"]); }
public void GivenICanInteractWithTheBookingApi() { BaseAPITests.Ping(); }
public void beforeScenario() { BaseAPITests.SetBaseUriAndAuth(); }
public void beforeFeature() { BaseAPITests.SetBaseUriAndAuth(); }