Exemplo n.º 1
0
 public void SendAndPublish <TCommand>(TCommand command) where TCommand : ICommand
 {
     _commandSender.SendAndPublish(command);
 }
Exemplo n.º 2
0
 public void SendAndPublishThrowsExceptionWhenCommandIsNull()
 {
     _createSomething = null;
     Assert.Throws <ArgumentNullException>(() => _sut.SendAndPublish(_createSomething));
 }