Beispiel #1
0
 private void AddModel2()
 {
     _model2 = new TestModel();
     _model2PreEventProcessor  = new StubModelProcessor();
     _model2PostEventProcessor = new StubModelProcessor();
     _router.AddModel(_model2.Id, _model2, _model2PreEventProcessor, _model2PostEventProcessor);
     _model2EventProcessor = new GenericModelEventProcessor <TestModel>(_router, _model2.Id, EventProcessor3Id);
     _model2Controller     = new TestModelController(_router, _model2.Id);
 }
Beispiel #2
0
 private void AddModel1()
 {
     _model1 = new TestModel();
     _model1PreEventProcessor  = new StubModelProcessor();
     _model1PostEventProcessor = new StubModelProcessor();
     _router.AddModel(_model1.Id, _model1, _model1PreEventProcessor, _model1PostEventProcessor);
     _model1EventProcessor  = new GenericModelEventProcessor <TestModel>(_router, _model1.Id, EventProcessor1Id);
     _model1EventProcessor2 = new GenericModelEventProcessor <TestModel>(_router, _model1.Id, EventProcessor2Id);
     _model1Controller      = new TestModelController(_router, _model1.Id);
 }