示例#1
0
        public void TestInitialise()
        {
            _Snapshot = Factory.TakeSnapshot();

            _StandardPipeline    = TestUtilities.CreateMockImplementation <IStandardPipeline>();
            _WebAppConfiguration = Factory.Resolve <IWebAppConfiguration>();
            _LoopbackEnvironment = null;
            _Environment         = new MockOwinEnvironment();

            _LoopbackHost = Factory.Resolve <ILoopbackHost>();
        }
示例#2
0
 /// <summary>
 /// Calls the middleware passed across. Sets or clears <see cref="NextMiddlewareCalled"/> if the
 /// middleware calls the next function in the chain.
 /// </summary>
 /// <param name="middlewareEntryPoint"></param>
 /// <param name="environment"></param>
 public void CallMiddleware(Func <AppFunc, AppFunc> middlewareEntryPoint, MockOwinEnvironment environment)
 {
     CallMiddleware(middlewareEntryPoint, environment.Environment);
 }