Exemple #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;
 }
Exemple #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
            });
        }
Exemple #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;
 }
Exemple #6
0
 public AccountAddressController(IRequestInfoService info, IAccountApplication accountApp)
     : base(info)
     => this.accountApp = accountApp;
Exemple #7
0
 public IndexModel(IOrderApplication orderApplication, IAccountApplication accountApplication)
 {
     _orderApplication   = orderApplication;
     _accountApplication = accountApplication;
 }
Exemple #8
0
 public AccountController(IAccountApplication accountApplication, IAuthHelper authHelper)
 {
     _accountApplication = accountApplication;
     _authHelper         = authHelper;
 }
 public AccountController(IConfiguration config, IAccountApplication accountApplication)
 {
     _accountApplication = accountApplication;
     _config             = config;
 }
Exemple #10
0
 public AccountModel(IAccountApplication accountApplication)
 {
     _accountApplication = accountApplication;
 }
Exemple #11
0
 public Task <string> GetApplicationAdditionalInfo(IAccountApplication accountApplicaton, string infoName)
 {
     return(_userInterfaceAdapter.GetApplicationAdditionalInfo(accountApplicaton, infoName));
 }
Exemple #12
0
 public IndexModel(IAccountApplication accountApplication, IFileUploader fileUploader, IRoleApplication roleApplication)
 {
     _accountApplication = accountApplication;
     _roleApplication    = roleApplication;
     _fileUploader       = fileUploader;
 }
 public ShopAccountAcl(IAccountApplication accountApplication)
 {
     _accountApplication = accountApplication;
 }
Exemple #14
0
 public AuthAdminController(IRequestInfoService info, IAccountApplication accountApplication)
     : base(info)
     => this.accountApplication = accountApplication;
 public AccountController(IAccountApplication accountApplication, IAccountQueryService accountQueryService, IGetId getId)
 {
     _accountApplication  = accountApplication;
     _accountQueryService = accountQueryService;
     _getId = getId;
 }
 public IndexModel(IAccountApplication accountApplication, IRoleApplication roleApplication)
 {
     _accountApplication = accountApplication;
     _roleApplication    = roleApplication;
 }
Exemple #17
0
 public CustomerDashboardController(IRequestInfoService info, IAccountApplication accountApplication)
     : base(info)
     => this.accountApplication = accountApplication;
 public RegisterModel(IAccountApplication accountApplication)
 {
     _accountApplication = accountApplication;
 }