public void ExecuteTest(SimpleCommandWithNoResult command)
 {
     "Given a command with no result"
     .x(() => command = new SimpleCommandWithNoResult());
     "When I dispatch the command using a custom dispatcher"
     .x(async() => await Dispatcher.DispatchAsync(command));
     "Then the custom dispatcher is used"
     .x(() =>
     {
         Assert.Equal(1, CustomDispatcher.Log.Count);
         Assert.Contains("Command of type SimpleCommandWithNoResult dispatched", CustomDispatcher.Log);
     });
 }
 public void ExecuteTest(SimpleCommandWithNoResult command)
 {
     "Given a command with no result"
     .x(() => command = new SimpleCommandWithNoResult());
     "When I dispatch the command"
     .x(async() => await Dispatcher.DispatchAsync(command));
     "Then the associated command handler is executed"
     .x(() =>
     {
         Assert.Equal(1, CommandTracer.LoggedItems.Count);
         Assert.Contains("Executed SimpleCommandWithNoResultHandler", CommandTracer.LoggedItems);
     });
 }