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