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);
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 public FileUploader(IConfigurationDAL config)
 {
     this.config = config;
 }
예제 #4
0
 /// <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());
 }
예제 #5
0
 public FileUploader()
 {
     config = new ConfigurationDAL();
 }
 public CurrencyService(IConfigurationDAL config)
 {
     this.config = config;
 }
 public CurrencyService()
 {
     config = new ConfigurationDAL();
 }
예제 #8
0
 /// <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;
 }
예제 #9
0
 public AchievementInMemory(IConfigurationDAL configurationDAL)
 {
     this._configurationDAL = configurationDAL;
 }
예제 #10
0
 /// <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;
 }