public void Bad_url_should_return_not_found()
		{
			string url = string.Format("{0}/foo/bar/fish/1234?oauth_consumer_key={1}", ApiUrl, consumerKey);
			var request = new GetRequest(url, new Dictionary<string, string>());

			var response = new HttpClientWrapper().Get(request);
			AssertResponse(response, HttpStatusCode.NotFound);
		}
		public void Can_resolve_uri()
		{
			string url = string.Format("{0}/status?oauth_consumer_key={1}", ApiUrl, consumerKey);
			var request = new GetRequest(url,  new Dictionary<string, string>());

			var response = new HttpClientWrapper().Get(request);
			AssertResponse(response, HttpStatusCode.OK);
		}
		public void No_key_should_return_unauthorized()
		{
			string url = string.Format("{0}/status", ApiUrl);
			var request = new GetRequest(url, new Dictionary<string, string>());

			var response = new HttpClientWrapper().Get(request);
			AssertResponse(response, HttpStatusCode.Unauthorized);
		}
		public void bad_url_post__should_return_not_found()
		{
			string url = string.Format("{0}/foo/bar/fish/1234?oauth_consumer_key={1}", ApiUrl, consumerKey);
			var parameters = new Dictionary<string, string>
				{
					{"foo", "bar"}
				};

			var request = new PostRequest(url, new Dictionary<string, string>(), parameters);

			var response = new HttpClientWrapper().Post(request);
			AssertResponse(response, HttpStatusCode.NotFound);
		}
		public void Can_cope_with_timeouts()
		{
			var apiUrl = "http://hanging-web-app.7digital.local";
			var request = new GetRequest(apiUrl, new Dictionary<string, string>());

			var response = new HttpClientWrapper().Get(request);
			AssertResponse(response, HttpStatusCode.OK);
		}