public SparkViewRenderer( FubuConventions fubuConventions, SparkConventions sparkConventions, IControllerConfigContext context, ISparkViewEngine viewEngine) { _fubuConventions = fubuConventions; _sparkConventions = sparkConventions; _context = context; _viewEngine = viewEngine; }
public void SetUp() { _controller = new TestController(); _behavior = MockRepository.GenerateMock<IControllerActionBehavior>(); _context = MockRepository.GenerateStub<IControllerConfigContext>(); _curConfig = _context.CurrentConfig = new ControllerActionConfig( typeof (ThunderdomeActionInvoker<TestController, TestInputModel, TestOutputModel>)); _invoker = new ThunderdomeActionInvoker<TestController, TestInputModel, TestOutputModel>(_controller, _behavior, _context); }
public void SetUp() { _controller = new TestController(); _behavior = MockRepository.GenerateStub<IControllerActionBehavior>(); _context = MockRepository.GenerateStub<IControllerConfigContext>(); _curConfig = _context.CurrentConfig = new ControllerActionConfig(typeof (RedirectActionInvoker<TestController, TestInputModel>)); _curConfig.ActionDelegate = new Action<TestController, TestInputModel>((c, i) => c.RedirectAction(i)); _expectedUrl = "EXPECTED_URL"; var conventions = new FubuConventions {PrimaryApplicationUrl = _expectedUrl}; _invoker = new RedirectActionInvoker<TestController, TestInputModel>(_controller, _behavior, conventions, _context); BeforeEach(); }