public void ThenTheResponseShouldContainTheCorrectCapitalAndLargestCity(string capital, string largestCity) { city = GetCity(); VerifyAsserts.AreEqual(capital, city[0], "The Capital City of --- " + _state + " --- is not as expected"); if (largestCity == "") { largestCity = null; } VerifyAsserts.AreEqual(largestCity, city[1], "The Largest City of --- " + _state + " --- is not as expected"); }
public void ThenIGetACountOfRecords(string recordsCount) { VerifyAsserts.AreEqual(Convert.ToString(_content.RestResponse.result.Count), EnvironmentVariables.RecordsCount, "The total records of the States/Territories returned by the API is not correct"); VerifyAsserts.Contains(Convert.ToString(_content.RestResponse.messages), EnvironmentVariables.TotalRecordsFoundMessage, "The total records of found message returned by the API is not right"); }