public AwardUsersLogic(IUsersDAO usersDAO, IAwardsDAO awardsDAO, IAwardsUsersDAO awardsUsersDAO, ICacheLogic cacheLogic) { this.usersDAO = usersDAO; this.awardsDAO = awardsDAO; this.awardsUsersDAO = awardsUsersDAO; this.cacheLogic = cacheLogic; }
public UsersBL() { if (!bool.TryParse(ConfigurationManager.AppSettings["UseDb"], out bool useDb)) { useDb = false; } UsersDAO = useDb ? new UsersSqlDAO() : (IUsersDAO) new UsersDAO(); }
public Resolver(string path) { daoAwardsAssotiations = new DALAwardsAssotiationsJSON(path); daoUsers = new DALUsersJSON(daoAwardsAssotiations, path); daoAwards = new DALAwardsJSON(daoAwardsAssotiations, path); daoEmblems = new EmblemsJSON(path); bllUsers = new BLOUsers(daoUsers); bllAwards = new BLOAwards(daoAwards); bllEmblems = new EmblemsBLL(daoEmblems); bllAwardsAssotiations = new BLOAwardsAssotiations(daoAwardsAssotiations); }
static DependencyResolver() { //_usersDAO = new JsonUsersDAO(); _usersDAO = new dbUsersDAO(); _usersLogic = new UsersLogic(_usersDAO); //_awardsDAO = new JsonAwardsDAO(); _awardsDAO = new dbAwardsDAO(); _awardsLogic = new AwardsLogic(_awardsDAO); //_table_Users_AwardsDAO = new JsonTable_Users_AwardsDAO(); _table_Users_AwardsDAO = new dbTable_Users_AwardsDAO(); _table_Users_AwardsLogic = new Table_Users_AwardsLogic(_table_Users_AwardsDAO); }
public Resolver() { daoUsers = new UsersDAO(); daoAwards = new AwardsDAO(); daoAwardsAssotiations = new AwardsAssotiationsDAO(daoUsers, daoAwards); daoRoles = new RolesDAO(); daoAuth = new AuthDAO(); GetBLLAuth = new BLOAuth(daoAuth); GetBLLRoles = new BLORoles(daoRoles); GetBLLUsers = new BLOUsers(daoUsers); GetBLLAwards = new BLOAwards(daoAwards); GetBLLAwardsAssotiations = new BLOAwardsAssotiations(daoAwardsAssotiations); }
static DependencyResolver() { _usersDAO = new dbUsersDAO(); _usersLogic = new UsersLogic(_usersDAO); _day_LessonDAO = new dbDay_LessonDAO(); _dayLessonLogic = new Day_LessonLogic(_day_LessonDAO); _time_LessonDAO = new dbTime_LessonDAO(); _time_LessonLogic = new Time_LessonLogic(_time_LessonDAO); _users_TimeLessonDAO = new dbUsers_TimeLessonDAO(); _users_TimeLessonLogic = new Users_TimeLessonLogic(_users_TimeLessonDAO); _table_DayLessonDAO = new dbTable_DayLessonDAO(); _table_DayLessonLogic = new Table_DayLessonLogic(_table_DayLessonDAO); _trial_LessonDAO = new dbTrial_LessonDAO(); _trial_LessonLogic = new Trial_LessonLogic(_trial_LessonDAO); }
public UsersBL(IUsersDAO usersDao) { _usersDao = usersDao; }
public UsersLogic(IUsersDAO usersDAO, ICacheLogic cacheLogic, IAwardUsersLogic awardUsersLogic) { this.awardUsersLogic = awardUsersLogic; this.cacheLogic = cacheLogic; this.usersDAO = usersDAO; }
public UsersAndAwardsBLL() { awardsDAO = new AwardsDAO(); usersDAO = new UsersDAO(); }
public UsersAndAwardsBLL(string connectionString) { usersDAO = new UsersDAOdb(connectionString); awardsDAO = new AwardsDAOdb(connectionString); }
public UsersLogic(IUsersDAO usersDAO) { _usersDAO = usersDAO; }
public BLOUsers(IUsersDAO daoUsers) { this.daoUsers = daoUsers; }
public UsersBL() { usersDAO = new UsersBdDAO(); //studentsDAO = new StudentDAOdb(); }
public UsersBL() { UsersDAO = new UsersDAO(); }
public PurchasesController(IPurchasesDAO purchaseDAO, IUsersDAO userDAO) { _purchaseDAO = purchaseDAO; _userDAO = userDAO; }
public UsersController(IUsersDAO dataAccessLayer, IPasswordHasher passwordHasher, ITokenGenerator tokenGenerator) { dao = dataAccessLayer; this.tokenGenerator = tokenGenerator; this.passwordHasher = passwordHasher; }
public UsersLogic(IUsersDAO usersDAO) { _usersDAO = usersDAO; Logger.InitLogger(); }
public ChoresMenuCLI(IUsersDAO usersDAO, IChoresDAO choresDAO, IPayoutDAO payoutDAO) { this.usersDAO = usersDAO; this.choresDAO = choresDAO; this.payoutDAO = payoutDAO; }
public AccountController(ITokenGenerator tokenGenerator, IUsersDAO userDao, IPasswordHasher passwordHasher) { this.tokenGenerator = tokenGenerator; this.passwordHasher = passwordHasher; this.userDAO = userDao; }
public AwardsAssotiationsDAO(IUsersDAO usersDao, IAwardsDAO awardsDao) { this.usersDao = usersDao; this.awardsDao = awardsDao; }
public UsersController(IUsersDAO usersDao) { _usersDAO = usersDao; }