Esempio n. 1
0
 public void TestRegisterCommands()
 {
     Container container = new Container();
     ICommandBusService commandBus = new CommandBusService(container);
     commandBus.RegisterCommandHandler<CommandA, CommandHandlerA>();
     commandBus.SendCommand(new CommandA());
 }
Esempio n. 2
0
 public void CreateBusWithoutContainerTest()
 {
     ICommandBusService commandBus = new CommandBusService(null);
 }
Esempio n. 3
0
        private ICommandBusService GetCommandBus()
        {
            ICommandBusService cbus = new CommandBusService(_container);

            return cbus;
        }