Beispiel #1
0
        public FubuRegistry()
        {
            _behaviorMatcher = new BehaviorMatcher((type, methodInfo) => _actionCallProvider(type, methodInfo));
            _observer = new NulloConfigurationObserver();
            _viewAttacher = new ViewAttacher(_types);

            setupDefaultConventionsAndPolicies();
        }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 public ViewExpression(ViewAttacher viewAttacher, FubuRegistry registry)
 {
     _viewAttacher = viewAttacher;
     _registry = registry;
 }
Beispiel #4
0
 public ViewsForActionFilterExpression(ViewAttacher attacher)
 {
     _attacher = attacher;
 }