Пример #1
0
        public async Task <string> GetApplicationAdditionalInfo(IAccountApplication accountApplicaton, string infoName)
        {
            Console.WriteLine($"podaj {infoName}");
            await Task.Delay(100);

            return(Console.ReadLine());
        }
 public UserDashboardModel(IOrderQuery orderQuery, IAuthHelper authHelper, IOrderApplication orderApplication, IAccountApplication accountApplication)
 {
     _orderQuery         = orderQuery;
     _authHelper         = authHelper;
     _orderApplication   = orderApplication;
     _accountApplication = accountApplication;
 }
Пример #3
0
        private async Task <CreateAccountResponse> GetAdditionalInfo(IAccountApplication accountApp, string additionalInfo = null)
        {
            if (additionalInfo == null)
            {
                try
                {
                    additionalInfo = await _environmentAdapter.GetApplicationAdditionalInfo(accountApp, "Set debit");
                }
                catch (Exception)
                {
                    _accountModule.SaveChanges();
                    _customerModule.SaveChanges();
                    return(new CreateAccountResponse {
                        Application = accountApp
                    });
                }
            }

            var account = _accountModule.CreateAccount(new AccountInfo {
                Debit = decimal.Parse(additionalInfo), Nrb = accountApp.Nrb
            }, accountApp.Applicants.First().Id);

            accountApp.AdditionalDataCollected(account);
            _accountModule.StageChanges();
            return(new CreateAccountResponse {
                Account = account
            });
        }
Пример #4
0
 public AccountController(
     IRequestInfoService info,
     IStoreApplication storeApp,
     IApplicationStoreApplication appStoreApp,
     ITransferTokenApplication transferTokenApp,
     IAccountResetPasswordTokenApplication resetPasswordTokenApp,
     IResetSMSTokenApplication resetSMSTokenApplication,
     IAccountApplication accountApp)
     : base(info)
 {
     this.accountApp               = accountApp;
     this.storeApp                 = storeApp;
     this.appStoreApp              = appStoreApp;
     this.transferTokenApp         = transferTokenApp;
     this.resetPasswordTokenApp    = resetPasswordTokenApp;
     this.resetSMSTokenApplication = resetSMSTokenApplication;
 }
 public AccountController(IAccountApplication accountApp)
 {
     _accountApp = accountApp;
 }
Пример #6
0
 public AccountAddressController(IRequestInfoService info, IAccountApplication accountApp)
     : base(info)
     => this.accountApp = accountApp;
Пример #7
0
 public IndexModel(IOrderApplication orderApplication, IAccountApplication accountApplication)
 {
     _orderApplication   = orderApplication;
     _accountApplication = accountApplication;
 }
Пример #8
0
 public AccountController(IAccountApplication accountApplication, IAuthHelper authHelper)
 {
     _accountApplication = accountApplication;
     _authHelper         = authHelper;
 }
 public AccountController(IConfiguration config, IAccountApplication accountApplication)
 {
     _accountApplication = accountApplication;
     _config             = config;
 }
Пример #10
0
 public AccountModel(IAccountApplication accountApplication)
 {
     _accountApplication = accountApplication;
 }
Пример #11
0
 public Task <string> GetApplicationAdditionalInfo(IAccountApplication accountApplicaton, string infoName)
 {
     return(_userInterfaceAdapter.GetApplicationAdditionalInfo(accountApplicaton, infoName));
 }
Пример #12
0
 public IndexModel(IAccountApplication accountApplication, IFileUploader fileUploader, IRoleApplication roleApplication)
 {
     _accountApplication = accountApplication;
     _roleApplication    = roleApplication;
     _fileUploader       = fileUploader;
 }
 public ShopAccountAcl(IAccountApplication accountApplication)
 {
     _accountApplication = accountApplication;
 }
Пример #14
0
 public AuthAdminController(IRequestInfoService info, IAccountApplication accountApplication)
     : base(info)
     => this.accountApplication = accountApplication;
Пример #15
0
 public AccountController(IAccountApplication accountApplication, IAccountQueryService accountQueryService, IGetId getId)
 {
     _accountApplication  = accountApplication;
     _accountQueryService = accountQueryService;
     _getId = getId;
 }
Пример #16
0
 public IndexModel(IAccountApplication accountApplication, IRoleApplication roleApplication)
 {
     _accountApplication = accountApplication;
     _roleApplication    = roleApplication;
 }
Пример #17
0
 public CustomerDashboardController(IRequestInfoService info, IAccountApplication accountApplication)
     : base(info)
     => this.accountApplication = accountApplication;
Пример #18
0
 public RegisterModel(IAccountApplication accountApplication)
 {
     _accountApplication = accountApplication;
 }