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