public void Init()
        {
            executorProvider = new Mock<ControllerExecutorProvider>();
            executor = new Mock<ControllerExecutor>();
            controllerProvider = new Mock<ControllerProvider>();
            context = new Mock<HttpContextBase>();

            routeMatch = new RouteMatch(null, null);
            prototype = new ControllerPrototype(new object());

            runner = new PipelineRunner
                     	{
                            ControllerProviders = new[] { new Lazy<ControllerProvider, IComponentOrder>(() => controllerProvider.Object, new FakeOrderMeta()) },
                            ControllerExecutorProviders = new[] { new Lazy<ControllerExecutorProvider, IComponentOrder>(() => executorProvider.Object, new FakeOrderMeta()) }
                     	};
        }
예제 #2
0
        public void Init()
        {
            executorProvider   = new Mock <ControllerExecutorProvider>();
            executor           = new Mock <ControllerExecutor>();
            controllerProvider = new Mock <ControllerProvider>();
            context            = new Mock <HttpContextBase>();

            routeMatch = new RouteMatch(null, null);
            prototype  = new ControllerPrototype(new object());

            runner = new PipelineRunner
            {
                ControllerProviders         = new[] { new Lazy <ControllerProvider, IComponentOrder>(() => controllerProvider.Object, new FakeOrderMeta()) },
                ControllerExecutorProviders = new[] { new Lazy <ControllerExecutorProvider, IComponentOrder>(() => executorProvider.Object, new FakeOrderMeta()) }
            };
        }