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; }
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 }); }
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; }
public AccountAddressController(IRequestInfoService info, IAccountApplication accountApp) : base(info) => this.accountApp = accountApp;
public IndexModel(IOrderApplication orderApplication, IAccountApplication accountApplication) { _orderApplication = orderApplication; _accountApplication = accountApplication; }
public AccountController(IAccountApplication accountApplication, IAuthHelper authHelper) { _accountApplication = accountApplication; _authHelper = authHelper; }
public AccountController(IConfiguration config, IAccountApplication accountApplication) { _accountApplication = accountApplication; _config = config; }
public AccountModel(IAccountApplication accountApplication) { _accountApplication = accountApplication; }
public Task <string> GetApplicationAdditionalInfo(IAccountApplication accountApplicaton, string infoName) { return(_userInterfaceAdapter.GetApplicationAdditionalInfo(accountApplicaton, infoName)); }
public IndexModel(IAccountApplication accountApplication, IFileUploader fileUploader, IRoleApplication roleApplication) { _accountApplication = accountApplication; _roleApplication = roleApplication; _fileUploader = fileUploader; }
public ShopAccountAcl(IAccountApplication accountApplication) { _accountApplication = accountApplication; }
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; }
public CustomerDashboardController(IRequestInfoService info, IAccountApplication accountApplication) : base(info) => this.accountApplication = accountApplication;
public RegisterModel(IAccountApplication accountApplication) { _accountApplication = accountApplication; }