public void Should_handle_command_with_correct_handler() { var container = new Container(); container.Register <ICommandHandler <TestCommand>, TestCommandHandler>(); var commandBus = new CommandBus(container); var command = new TestCommand(); commandBus.Run(command); Assert.IsTrue(command.Handled); }