示例#1
0
        public ControllerTests Get(string pathAndQueryString)
        {
            SetPathAndQueryString(pathAndQueryString);
            _ResponseStream.SetLength(0);
            _Context.RequestMethod = "GET";
            _RamHost.ProcessRequest(_Context.Environment);

            return(this);
        }
示例#2
0
        public void ProcessRequest_Sends_Environment_Down_Pipeline()
        {
            _Host.Initialise(_PipelineBuilder.Object, _PipelineBuilderEnvironment.Object);
            _Host.Start();

            var env = new OwinDictionary <object>();

            _Host.ProcessRequest(env);

            _Pipeline.Verify(r => r.ProcessRequest(env), Times.Once());
        }