Exemplo n.º 1
0
 public void GivenIHaveUrlWithEndpointEndpoint(string strEndPoint)
 {
     RestAPIHelper.setURL(RestAPIHelper.strResource);
 }
Exemplo n.º 2
0
 public void WhenICallGetMethodOfAPI()
 {
     RestAPIHelper.createRequest();
 }
 public void ThenIWillGetUserInformation()
 {
     var response = RestAPIHelper.GetResponse();
 }
Exemplo n.º 4
0
        public async Task <IHttpActionResult> SendMessage(string url, string phone, string message)
        {
            var result = await RestAPIHelper.CallAPI(url, phone, message);

            return(Ok(result));
        }
 public void WhenICallGetMethodInAPI()
 {
     RestAPIHelper.GetRequest();
 }
 public void WhenICallGetMethodToGetUserInformationUsingWl(string userid)
 {
     RestAPIHelper.GetRequest(userid);
 }
 public void GivenIHaveAnEndpoint(string endpoint)
 {
     RestAPIHelper.seturl(endpoint);
 }
 public void WhenISendTheRestRequestUsingGET()
 {
     RestAPIHelper.CreateRequest();
 }
 public void GivenTheEndpointIs(string endpoint)
 {
     RestAPIHelper.setUrl(endpoint);
 }
 public void CleanUp()
 {
     restHelper = null;
 }
 public void Initialize()
 {
     restHelper = new RestAPIHelper();
 }