protected override ICommandDispatcher BuildCommandDispatcher() { _eventStore.AddPreviousEvents <BasketAggregate>(_preConditions); _aggregateRepository = new AggregateRepository(_eventStore); var commandDispatcher = new BasketCommandDispatcher(_aggregateRepository); return(commandDispatcher); }
public BasketController() { _aggregateRepository = new AggregateRepository(_eventStore); _commandDispatcher = new BasketCommandDispatcher(_aggregateRepository); }