コード例 #1
0
 public override void Given()
 {
     Selector = CreateStub<ActionResultSelector>();
     actionResultResolver = new FluentMvcResolver(actionResultRegistry, CreateStub<IFluentMvcObjectFactory>(), new ActionFilterResolver(actionFilterRegistry, CreateStub<IFluentMvcObjectFactory>()));
     CatchAllFactory = CreateStub<IActionResultFactory>();
     actionResultResolver.SetDefaultFactory(CatchAllFactory);
 }
コード例 #2
0
        public override void Given()
        {
            pipeline = CreateStub<IActionResultPipeline>();

            ExpectedActionResult = CreateStub<ActionResult>();
            pipeline.Stub(factory => factory.Create(Arg<ActionResultSelector>.Is.Anything))
                .Return(ExpectedActionResult);

            FactoryOptions = CreateStub<ActionResultSelector>();
            actionResultResolver = new FluentMvcResolver(actionResultRegistry, CreateStub<IFluentMvcObjectFactory>(), new ActionFilterResolver(actionFilterRegistry, CreateStub<IFluentMvcObjectFactory>()));
            actionResultResolver.RegisterActionResultPipeline(pipeline);
        }
コード例 #3
0
 public override void Given()
 {
     pipeline = CreateStub<IActionResultPipeline>();
     actionResultResolver = new FluentMvcResolver(actionResultRegistry, CreateStub<IFluentMvcObjectFactory>(), new ActionFilterResolver(actionFilterRegistry, CreateStub<IFluentMvcObjectFactory>()));
 }