protected override async Task HandleCore(CreateAccountReferenceCommand message) { var validationResult = _validator.Validate(message); if (!validationResult.IsValid()) { throw new InvalidRequestException(validationResult.ValidationDictionary); } await _paymentsRepository.CreateAccountReference(message.AccountId); }