Exemple #1
0
 public ScheduleHandlers(IScheduleQuery scheduleQuery, IEventServer eventServer,
                         IScheduleRepository scheduleRepository, IViewScheduleFactory scheduleFactory)
 {
     this.scheduleQuery   = scheduleQuery;
     this.eventServer     = eventServer;
     this.repository      = scheduleRepository;
     this.scheduleFactory = scheduleFactory;
 }
        public ScheduleManagementPresenter(IScheduleQuery scheduleQuery, IDatabaseConnectionFactory databaseConnectionFactory, IDatabaseGateway databaseGateway)
        {
            view = new ScheduleManagementView(this);

            this.scheduleQuery = scheduleQuery;
            this.databaseConnectionFactory = databaseConnectionFactory;
            this.databaseGateway = databaseGateway;
        }
Exemple #3
0
        public SchedulesController(IServiceBus bus, IDataStoreDatabaseContextFactory databaseContextFactory,
                                   IScheduleQuery scheduleQuery)
        {
            Guard.AgainstNull(databaseContextFactory, nameof(databaseContextFactory));
            Guard.AgainstNull(scheduleQuery, nameof(scheduleQuery));
            Guard.AgainstNull(bus, nameof(bus));

            _databaseContextFactory = databaseContextFactory;
            _scheduleQuery          = scheduleQuery;
            _bus = bus;
        }
Exemple #4
0
 public ScheduleController(ICommandBus commandBus, IScheduleQuery scheduleQuery)
 {
     this.commandBus    = commandBus;
     this.scheduleQuery = scheduleQuery;
 }
Exemple #5
0
 public ScheduleCommandExecutor(IScheduleQuery query, ICommandBus commandBus)
     : base(new State() { CommandBus = commandBus, ScheduleQuery = query })
 {
 }