public void Setup()
        {
            var      executionRepository = new ExecutionRepository();
            IMailbox mailbox             = executionRepository;
            IReportCommandExecution reportCommandExecution = executionRepository;

            _dispatcher = new MyDispatcher(reportCommandExecution, mailbox);
        }
Beispiel #2
0
        public MyDispatcher(IReportCommandExecution reportCommandExecution, IMailbox mailbox)
        {
            _reportCommandExecution = reportCommandExecution;
            _mailbox = mailbox;

            _commandToHandlerMapping = new Dictionary <Type, Type>();
            _queryToHandlerMapping   = new Dictionary <Type, Type>();

            Discover();
        }
Beispiel #3
0
 public MyFirstCommandHandler(IReportCommandExecution reportCommandExecution)
 {
     _reportCommandExecution = reportCommandExecution;
 }