public FubuRegistry() { _behaviorMatcher = new BehaviorMatcher((type, methodInfo) => _actionCallProvider(type, methodInfo)); _observer = new NulloConfigurationObserver(); _viewAttacher = new ViewAttacher(_types); setupDefaultConventionsAndPolicies(); }
public void Setup() { var types = new TypePool(null); _observer = new RecordingConfigurationObserver(); _action = ActionCall.For<ViewsForActionFilterTesterController>(x => x.AAction()); _fromFindsOne = new FakeViewToken(); _fromSecondFindsOne = new FakeViewToken(); _views = new ViewBag(new IViewToken[] { _fromFindsOne, _fromSecondFindsOne }); _filterThatFindsNone = createFilterThatReturns(new IViewToken[0]); _firstFilterThatFindsExactlyOne = createFilterThatReturns(_fromFindsOne); _secondFilterThatFindsExactlyOne = createFilterThatReturns(_fromSecondFindsOne); _filterThatFindsMultiple = createFilterThatReturns(_fromFindsOne, _fromSecondFindsOne); _viewAttacher = new ViewAttacher(types); }
public ViewExpression(ViewAttacher viewAttacher, FubuRegistry registry) { _viewAttacher = viewAttacher; _registry = registry; }
public ViewsForActionFilterExpression(ViewAttacher attacher) { _attacher = attacher; }