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() { _aggregator = new BehaviorAggregator(new TypePool(null), new List<IActionSource> { new ActionSourceStub(() => new List<ActionCall> { ActionCall.For<TestController>(c => c.Index()) }), new ActionSourceStub(() => new List<ActionCall> { ActionCall.For<TestController>(c => c.SomeAction(1)) }) }); }