Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
 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");
 }