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