コード例 #1
0
ファイル: FubuRegistry.cs プロジェクト: spascoe/fubumvc
        public FubuRegistry()
        {
            _behaviorAggregator = new BehaviorAggregator(_types, _actionSources);
            _observer = new NulloConfigurationObserver();
            _viewAttacherConvention = new ViewAttacherConvention();
            _bagRunner = new ViewBagConventionRunner(_types);
            _connegAttachmentPolicy = new ConnegAttachmentPolicy(_types);

            setupDefaultConventionsAndPolicies();
        }
コード例 #2
0
 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))
                                                                                                     })
                                                                  });
 }