Exemplo n.º 1
0
 public void ExecuteInvalidCommand()
 {
     try {
         _command = new TestCommand() { IsValid = false };
         _commandBus.Execute(_command);
     } catch (Exception e) {
         _commandExecutionException = e;
     }
 }
Exemplo n.º 2
0
 public void ExecuteCommand()
 {
     try {
         _command = new TestCommand();
         _commandBus.Execute(_command);
     } catch (Exception e) {
         _commandExecutionException = e;
     }
 }
Exemplo n.º 3
0
 protected override void BeforeScenario()
 {
     _command = new TestCommand();
     _context = new CommandContext<TestCommand>(_command);
 }