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