Example #1
0
        public void sets_user_agent_string_on_new_request___some_servers_return_Forbidden_when_user_agent_string_missing()
        {
            var request = _httpRequestFactory.CreateRequest("http://some-url.com");

            Assert.NotEmpty(request.UserAgent);

            Assert.Equal("rssmixxxer/user_agent", request.UserAgent);
        }
Example #2
0
 public CallAnApiTests()
 {
     this._sender  = new FakeHttpRequestSender();
     this._request = HttpRequestFactory.CreateRequest();
 }