Exemple #1
0
        public WinkelService()
        {
            if (bInitializedDao)
            {
                return;
            }

            var dataSource = dataSet.MSSQL;

            if (dataSource == dataSet.HARDCODED)
            {
                productDao   = new HCProduct();
                gebruikerDao = new HCGebruiker();
            }
            else if (dataSource == dataSet.MSSQL)
            {
                productDao   = new SQLProduct();
                gebruikerDao = new SQLGebruiker();
            }
            else
            {
                throw new NotImplementedException();
            }

            bInitializedDao = true;
        }
 public GebruikerRepository(IGebruiker i)
 {
     _interface = i;
 }
Exemple #3
0
 public SessieController(ISessie repo, IGebruiker gebruikerRepository)
 {
     _sessieRepository    = repo;
     _gebruikerRepository = gebruikerRepository;
 }
Exemple #4
0
 public BeheerderController(IGebruiker gebruikerRepository, UserManager <IdentityUser> userManager)
 {
     _gebruikerRepository = gebruikerRepository;
     _userManager         = userManager;
 }
 public GebruikerRepository(IGebruiker context)
 {
     this.context = context;
 }
 public CommentaarController(ICommentaar rep, IGebruiker gebruikerRepo, ILesmateriaal lesmatRepo)
 {
     _repo = rep;
     _gebruikerRepository    = gebruikerRepo;
     _lesmateriaalRepository = lesmatRepo;
 }
Exemple #7
0
 public LesController(ILes repo, IGebruiker gebruikerRepository)
 {
     _lesRepository       = repo;
     _gebruikerRepository = gebruikerRepository;
 }
 public GebruikerController(IGebruiker gebruikerRepository, ILes lesRepository, ApplicationDbContext context)
 {
     _gebruikerRepository = gebruikerRepository;
     _lesRepository       = lesRepository;
     _gebruikerSessie     = context.GebruikerSessie;
 }
Exemple #9
0
 public ActiviteitController(IActiviteit repo, IGebruiker gebruikerRepository)
 {
     _activiteitRepository = repo;
     _gebruikerRepository  = gebruikerRepository;
 }