public void TestInitialise() { _Snapshot = Factory.TakeSnapshot(); _StandardPipeline = TestUtilities.CreateMockImplementation <IStandardPipeline>(); _WebAppConfiguration = Factory.Resolve <IWebAppConfiguration>(); _LoopbackEnvironment = null; _Environment = new MockOwinEnvironment(); _LoopbackHost = Factory.Resolve <ILoopbackHost>(); }
/// <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); }