public async Task <RetailCustomer> GetRetailCustomerBankInfo(string name)
        {
            var         esbURL   = _configuration.GetSection("ESB").GetSection("URL").Value;
            IESBService api      = RestClient.For <IESBService>(esbURL);
            var         esbModel = await api.GetCRByName(name);

            return(new RetailCustomer(Guid.NewGuid(), name, esbModel.CR, esbModel.CIC.ToString(), "", "dddsfsdfsf", "1234", null));
        }
 public AccountingInterfaceCommandsHandler(
     ILogger <AccountingInterfaceCommandsHandler> logger,
     IUnitOfWork unitOfWork,
     IAccountingInterfaceRepository accountingInterfaceRepository,
     IESBService esbService,
     ISystemDateTimeService systemDateTimeService,
     IIdentityService identityService,
     IAuthorizationService authorizationService,
     IInterfaceEventLogService interfaceEventLogService)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _accountingInterfaceRepository = accountingInterfaceRepository ?? throw new ArgumentNullException(nameof(accountingInterfaceRepository));
     _unitOfWork               = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _esbService               = esbService ?? throw new ArgumentNullException(nameof(esbService));
     _systemDateTimeService    = systemDateTimeService ?? throw new ArgumentNullException(nameof(systemDateTimeService));
     _identityService          = identityService ?? throw new ArgumentNullException(nameof(identityService));
     _authorizationService     = authorizationService ?? throw new ArgumentNullException(nameof(authorizationService));
     _interfaceEventLogService = interfaceEventLogService ?? throw new ArgumentNullException(nameof(interfaceEventLogService));
 }