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