Exemple #1
0
 public void SendAndPublishAsync_ThrowsException_WhenCommandIsNull()
 {
     _createSomething = null;
     Assert.ThrowsAsync <ArgumentNullException>(async() => await _sut.SendAndPublishAsync(_createSomething));
 }
Exemple #2
0
 /// <inheritdoc />
 public Task SendAndPublishAsync <TCommand>(TCommand command) where TCommand : ICommand
 {
     return(_commandSender.SendAndPublishAsync(command));
 }