public FubuRegistry() { _behaviorAggregator = new BehaviorAggregator(_types, _actionSources); _observer = new NulloConfigurationObserver(); _viewAttacherConvention = new ViewAttacherConvention(); _bagRunner = new ViewBagConventionRunner(_types); _connegAttachmentPolicy = new ConnegAttachmentPolicy(_types); setupDefaultConventionsAndPolicies(); }
public void Setup() { _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); _viewAttacherConvention = new ViewAttacherConvention(); }
public ViewsForActionFilterExpression(ViewAttacherConvention attacher) { _attacher = attacher; }
public ViewExpression(ViewBagConventionRunner viewAttacher, FubuRegistry registry, ViewAttacherConvention viewAttacherConvention) { _viewAttacher = viewAttacher; _viewAttacherConvention = viewAttacherConvention; _registry = registry; }