Exemplo n.º 1
0
 public void ThenApiResponseIsWithNotOkStatus()
 {
     apiResponse = RestAPIHelper.GetResponse(restRequest);
     Assert.AreEqual(apiResponse.StatusCode, System.Net.HttpStatusCode.NotFound);
 }
Exemplo n.º 2
0
        public void ThenValidateAlbumCountInApiResponse()
        {
            int intValue = RestAPIHelper.ReturnCount(requestFormat, apiResponse);

            Assert.IsTrue(intValue > 1, "Count not more than 1");
        }
Exemplo n.º 3
0
        public void ThenValidateApiResponseIsForRequestedId()
        {
            string actualId = RestAPIHelper.ReturnId(requestFormat, apiResponse);

            Assert.AreEqual(actualId, idValue);
        }
Exemplo n.º 4
0
 public void GivenUserHasAnEndpointUsers()
 {
     RestAPIHelper.SetUrl();
 }