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