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