Beispiel #1
0
 public void BootstrapCommands(
     ICommandHandlerRegistry commandHandlerRegistry,
     IRepositories repositories,
     Action <object> eventPublisher,
     Func <object> idFactory,
     IQueryDispatcher queryDispatcher)
 {
     commandHandlerRegistry.SetHandler <AddJourneyWithLiftsCommand>(
         new AddJourneyWithLiftsCommandHandler(eventPublisher, repositories, idFactory, queryDispatcher).Execute);
 }
Beispiel #2
0
 public UIElement Bootstrap()
 {
     _queryHandlerRegistry.SetHandler <GetJourneyTemplatesQuery, IEnumerable <JourneyTemplate> >(Settings.Settings.Default.Execute);
     _commandHandlerRegistry.SetHandler <StoreJourneyTemplatesCommand>(Settings.Settings.Default.Handle);
     return(new MainPanel(
                _commandDispatcher,
                _queryDispatcher,
                _eventBus,
                _idFactory));
 }