private static void ValidateResponse(IHttpResponse response)
 {
     if (!response.IsSuccessStatusCode)
     {
         throw new HttpException((int)response.StatusCode, response.Content);
     }
 }
 private T DeserializeContent <T>(IHttpResponse response)
 {
     return(_serializer.Deserialize <T>(response.Content));
 }