Exemple #1
0
 public void ThenTheResponseShouldSendAInvalidStateMessage()
 {
     VerifyAsserts.IsNull(_content.RestResponse.count, "The Results is not null. It should have been null for this invalid State Abbrevation");
     VerifyAsserts.Contains(Convert.ToString(_content.RestResponse.messages), EnvironmentVariables.NoMatchingStateFoundMessage, "The no matching state found message is not returned in the response");
 }
Exemple #2
0
 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");
 }