public AccountsController() { reportService = new ExpenseReportService(); employeeService = new EmployeeService(); config = new ConfigurationDAL(); budgetTracker = new CompanyBudgetService(decimal.Parse((string)config.GetAppSetting(COMPANY_BUDGET_KEY))); employee = employeeService.GetEmployee((int)Membership.GetUser().ProviderUserKey); }
/// <summary> /// Initializes a new instance of the <see cref="ConfigurationBAL"/> class. /// </summary> /// <param name="_IConfigurationDAL">The i configuration dal.</param> public ConfigurationBAL(IConfigurationDAL _IConfigurationDAL) { _ConfigurationDAL = _IConfigurationDAL; }
public FileUploader(IConfigurationDAL config) { this.config = config; }
/// <summary> /// Instantiate a connection object. /// </summary> /// <param name="configurationDAL">The configuration data acces object.</param> public ConnectionMySQL(IConfigurationDAL configurationDAL) { this._configurationDAL = configurationDAL; this._dbConnection = new MySqlConnection(_configurationDAL.GetConnection()); }
public FileUploader() { config = new ConfigurationDAL(); }
public CurrencyService(IConfigurationDAL config) { this.config = config; }
public CurrencyService() { config = new ConfigurationDAL(); }
/// <summary> /// Instantiate the database preparation data access object. /// </summary> /// <param name="connectable">The connection object.</param> /// <param name="configurationDAL">The configuration data access.</param> public DBPrepMySQL(IConnectionDAL connectable, IConfigurationDAL configurationDAL) { this._connectable = connectable; this._configurationDAL = configurationDAL; }
public AchievementInMemory(IConfigurationDAL configurationDAL) { this._configurationDAL = configurationDAL; }
/// <summary> /// Instantiate the achievement data access object. /// </summary> /// <param name="connectable">The connection object.</param> /// <param name="configurationDAL">The configuration data access.</param> public AchievementMySQL(IConnectionDAL connectable, IConfigurationDAL configurationDAL) { this._connectable = connectable; this._configurationDAL = configurationDAL; }