public Representation Parse(Task<HttpResponseMessage> response, ApiProxy.ApiFormat format)
 {
     if (response.Result.IsSuccessStatusCode)
     {
         var responseString = response.Result.Content.ReadAsStringAsync().Result;
         var jsonValue = JObject.Parse(responseString);
         return new Representation(jsonValue, format);
     }
     return ParseException(response);
 }
 public void BeforeScenario()
 {
     var apiProxy = new ApiProxy(ApiProxy.ApiFormat.Json);
     ScenarioContext.Current["apiProxy"] = apiProxy;
 }
 public ResourceRequester(ApiProxy.ApiFormat format, string baseUri)
 {
     _format = format;
     _baseURI = baseUri;
     _responseParser = new ResponseParser();
 }
 public Representation(JObject jsonValue, ApiProxy.ApiFormat format)
 {
     _jsonValue = jsonValue;
     _format = format;
 }