public void ThenThereShouldBeCircuitsInTheListReturned(int numberOfSeasons) { dynamic jsonResponse = JsonConvert.DeserializeObject(restResponse.Content); JArray circuitsArray = jsonResponse.MRData.CircuitTable.Circuits; OTAAssert.AssertEquals(null, test, circuitsArray.Count, numberOfSeasons, "The actual number of circuits in the list is equal to the expected value " + numberOfSeasons.ToString()); }
public void ThenHeShouldSeeAnErrorMessageStatingThatTheLoginRequestWasDenied() { OTAAssert.AssertEquals(driver, test, new LoginErrorPage().Load().GetErrorMessage(), "The username and password could not be verified.", "Error message indicating an unsuccessful login is displayed"); }
public void ThenHeShouldLandOnTheAccountsOverviewPage() { OTAAssert.AssertTrue(driver, test, new AccountsOverviewPage().Load().IsAt(), "User landed on the Accounts Overview page after a successful login"); }