public Task Handle(BankDetailsApprovedForLegalEntity @event, CancellationToken cancellationToken = default)
        {
            var command = new AddEmployerVendorIdCommand()
            {
                HashedLegalEntityId = @event.HashedLegalEntityId
            };

            return(_commandPublisher.Publish(command));
        }
 public Task RunEvent([NServiceBusTrigger(Endpoint = QueueNames.AddEmployerVendorId)] AddEmployerVendorIdCommand command)
 {
     return(_addEmployerVendorIdService.Add(new EmployerVendorId {
         HashedLegalEntityId = command.HashedLegalEntityId
     }));
 }