public void beforeEach()
 {
   ctxHelper = new CtxHelper();
   ctx = ctxHelper.sharedCtx;
   userDao = new UserDAO(ctxHelper.sharedCtx);
   ctxHelper.seed(getDefaultSeed()).Wait();
 }
Beispiel #2
0
        public CtfUserBL(ITransactionDAO transactionDAO, IWebHostEnvironment webHostEnvironment, IUserDAO userDAO,
                         IHttpContextAccessor httpContextAccessor, IOptions <CtfOptions> ctfOptions) : base(transactionDAO, userDAO, webHostEnvironment)
        {
            _userDAO = userDAO;

            _httpContextAccessor = httpContextAccessor;

            _ctfOptions = ctfOptions.Value;
        }
Beispiel #3
0
 public GitFitController(IUserDAO userDao)
 {
     this.userDao = userDao;
 }
 public AccountController(IAccountDAO accountDAO, IUserDAO userDAO)
 {
     AccountDAO = accountDAO;
     UserDAO    = userDAO;
 }
Beispiel #5
0
 public TEGramController(IUserDAO userDao)
 {
     this.userDao = userDao;
 }
 public ServiceController(IServiceDAO serviceDAO, IUserDAO userDAO)
 {
     _serviceDAO = serviceDAO;
     _userDAO    = userDAO;
 }
Beispiel #7
0
 /// <summary>
 /// Creates a new account controller.
 /// </summary>
 /// <param name="tokenGenerator">A token generator used when creating auth tokens.</param>
 /// <param name="passwordHasher">A password hasher used when hashing passwords.</param>
 /// <param name="userDao">A data access object to store user data.</param>
 public AccountController(ITokenGenerator tokenGenerator, IPasswordHasher passwordHasher, IUserDAO userDao)
 {
     this.tokenGenerator = tokenGenerator;
     this.passwordHasher = passwordHasher;
     this.userDao        = userDao;
 }
Beispiel #8
0
 public UserBO(IUserDAO userDao, ICountryDAO countryDao, IMappingEngine mapper)
 {
     userDAO = userDao;
     countryDAO = countryDao;
     Mapper = mapper;
 }
 public SessionAuthProvider(IHttpContextAccessor contextAccessor, IUserDAO userDAO)
 {
     this.contextAccessor = contextAccessor;
     this.userDAO         = userDAO;
 }
Beispiel #10
0
 public UserService(IUserDAO userDAO)
 {
     UserDAO = userDAO;
 }
Beispiel #11
0
 public UserService(IUserDAO dao, IMapper mapper) : base(dao, mapper)
 {
     _userDao = dao;
 }
Beispiel #12
0
 public AwardManager(IAwardDAO awardDAO, IUserDAO userDAO)
 {
     _awardDAO = awardDAO;
     _userDAO  = userDAO;
 }
Beispiel #13
0
 public UserController(IUserDAO userDAO)
 {
     this.userDAO = userDAO;
 }
Beispiel #14
0
        public UserLogic()
        {
            IKernel ninjectKernel = new StandardKernel(new NinjectRegistrations());

            userDAO = ninjectKernel.Get <IUserDAO>();
        }
Beispiel #15
0
        public IUserDAO createUserDAO()
        {
            lock(lockObj)
            {
                if(userDAO == null)
                {
                    if (databaseName == DATABASE_MSSQL)
                        userDAO = new UserMSSqlDAO();

                    if (userDAO == null)
                        throw new Exception("Unsupported database : " + databaseName);
                }

                return userDAO;
            }
        }
 public UserManager(IContextContainer container)
     : base(container)
 {
     _userDAO = new UserDAO(container);
 }
Beispiel #17
0
 public UserService(IUserDAO repository)
 {
     _repository = repository;
 }
 public AccountController(IUserDAO userDAO, IAccountDAO accountDAO)
 {
     this.userDAO    = userDAO;
     this.accountDAO = accountDAO;
 }
Beispiel #19
0
 public void SetUp()
 {
     mockdb  = new Mock <IDatabase>();
     db      = mockdb.Object;
     userdao = new UserDAO(db);
 }
Beispiel #20
0
 public UserLogic(IUserDAO data, IHash hashPassword, ILoggerIO log)
 {
     userHash = hashPassword;
     userData = data;
     logger   = log;
 }
Beispiel #21
0
 /// <summary>
 /// A controller for likes
 /// </summary>
 /// <param name="likeDAO"></param>
 public LikeController(ILikeDAO likeDAO, IUserDAO userDAO)
 {
     this.likeDAO = likeDAO;
     this.userDAO = userDAO;
 }
Beispiel #22
0
 public UserLogic(IUserDAO userDao)
 {
     _userDao = userDao;
 }
 public TransferController(ITransferDAO transferDAO, IAccountDAO accountDAO, IUserDAO userDAO)
 {
     this.transferDAO = transferDAO;
     this.accountDAO  = accountDAO;
     this.userDAO     = userDAO;
 }
Beispiel #24
0
 public UserService(IUserDAO userDAO)
 {
     this.userDAO = userDAO;
 }
 public LoginController(ITokenGenerator _tokenGenerator, IPasswordHasher _passwordHasher, IUserDAO _userDAO)
 {
     tokenGenerator = _tokenGenerator;
     passwordHasher = _passwordHasher;
     userDAO        = _userDAO;
 }
Beispiel #26
0
 public TrackingController(IUserDAO userDao, IProfileDAO profileDao, IFoodDAO foodDao) : base(userDao)
 {
     this.profileDao = profileDao;
     this.foodDao    = foodDao;
 }
Beispiel #27
0
 public UserService(IUserDAO userDAO, IAwardDAO awardDAO, IUserAwardDAO userAwardDAO)
 {
     _userDAO      = userDAO;
     _awardDAO     = awardDAO;
     _userAwardDAO = userAwardDAO;
 }
Beispiel #28
0
 public AdminBL(ITransactionDAO transactionDao, IUserDAO userDAO)
 {
     _transactionDao = transactionDao;
     _userDAO        = userDAO;
 }
 public UserController(IUserDAO dao)
 {
     userDao = dao;
 }
Beispiel #30
0
 public UserBO(IUserDAO dao)
 {
     this.dao = dao;
 }
 public ListenerCustomerDAOImpl(IUserDAO _userDAO, ITerminalAdministratorDAO _terminalAdministratorDAO)
 {
     this.terminalAdministratorDAO = _terminalAdministratorDAO;
     this.userDAO = _userDAO;
 }
 public UserComponent(IUserDAO userDao)
 {
   this.userDao = userDao;
 }
Beispiel #33
0
 public UserBL()
 {
     usersDAO = new UserDAO();
 }
Beispiel #34
0
 public UserServiceImpl(IUserDAO UserDAO)
 {
     this.UserDAO = UserDAO;
 }
Beispiel #35
0
 public TransferController(IAccountDAO _accountDAO, IUserDAO _userDAO, ITransferDAO _transferDAO)
 {
     accountDAO  = _accountDAO;
     userDAO     = _userDAO;
     transferDAO = _transferDAO;
 }
Beispiel #36
0
 public UserLogic(IUserDAO userDAO)
 {
     _usersDAO = userDAO;
 }
Beispiel #37
0
 public UserService(IUserDAO userDao)
 {
     _userDao = userDao;
 }