public UserProfileModel( ILogger <UserProfileModel> logger, IUserAccountsRepository userAccountsRepo ) { this.logger = logger; this.userAccountsRepo = userAccountsRepo ?? throw new ArgumentNullException(nameof(userAccountsRepo)); }
public static void DatabaseConnection() { var appConfig = ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location); var mySqlConnectionString = appConfig.AppSettings.Settings["MySQLConnectionString"].Value; _database = new MySqlConnectionStringBuilder(mySqlConnectionString); _userRepo = _database.Connection().As<IUserAccountsRepository>(); }
public AuthController( UserManager <UserInfo> userManager, IOptions <IdentityOptions> identityOptions, // IEmailSender emailSender, SignInManager <UserInfo> signInManager, ILoggerFactory loggerFactory, IUserAccountsRepository accountsRepo) { _userManager = userManager; _identityOptions = identityOptions; // _emailSender = emailSender; _signInManager = signInManager; _accountRepo = accountsRepo; _logger = loggerFactory.CreateLogger <AuthController>(); }
public ManageController( IUserAccountsRepository accountRepo, UserManager <UserInfo> userManager, IUserAccountTimeseriesRepository timeseriesRepo, IUserSettingsRepository settingsRepo, IRiskStrategyConfiguration risksConfig, ICalculationConfiguration calcConfig, IUserProfileRepository profileRepo, ICalculationService calculation) { _accountRepo = accountRepo; _userManager = userManager; _timeseriesRepo = timeseriesRepo; _settingsRepo = settingsRepo; _risksConfig = risksConfig; _profileRepo = profileRepo; _calculation = calculation; _calcConfig = calcConfig; }
public UserAccountsQuery(IUserAccountsRepository repository) { _repository = repository; }
public UserAccountsController(IUserAccountsRepository db) { _db = db; }
static ClsUserAccountsServices() { Repository = new ClsUserAccountsDataAccess(); }
public UserAccountsCommand(IUserAccountsRepository repository) { _repository = repository; }
public ProductsController(IProductsRepository repository, IUserAccountsRepository userAccountRepository) { _productRepository = repository; _userAccountRepository = userAccountRepository; }