ProcessRequest() public method

Processes an incoming HTTP request.
is null.
public ProcessRequest ( IStumpsHttpContext context ) : Task
context IStumpsHttpContext The representing both the incoming request and the response.
return Task
Beispiel #1
0
        public void ProcessRequest_NullValue_ThrowsException()
        {
            var proxy = new ProxyHandler(new Uri("http://localhost/"));

            Assert.That(
                async () => await proxy.ProcessRequest(null),
                Throws.Exception.TypeOf<ArgumentNullException>().With.Property("ParamName").EqualTo("context"));
        }
        public void ProcessRequest_NullValue_ThrowsException()
        {
            var proxy = new ProxyHandler(new Uri("http://localhost/"));

            Assert.That(
                async() => await proxy.ProcessRequest(null),
                Throws.Exception.TypeOf <ArgumentNullException>().With.Property("ParamName").EqualTo("context"));
        }