// Give it as a parameter aswel for unit testing public ReservationsController(IReservationsRepository repo, IDemandesRepository demandesRepo, ISallesRepository sallesRepo, ICreneauxHorairesRepository creneauxRepo) { this.repository = repo; this.demandesRepository = demandesRepo; this.sallesRepository = sallesRepo; this.creneauxRepository = creneauxRepo; }
// Give it as a parameter aswel for unit testing public ReservationsController(IReservationsRepository repo, IDemandesRepository demandesRepo, ISallesRepository sallesRepo, ICreneauxHorairesRepository creneauxRepo) { this.repository = repo; this.demandesRepository = demandesRepo; this.sallesRepository = sallesRepo; this.creneauxRepository = creneauxRepo; }
public AdministrationController(IEnseignantsRepository repo, IBatimentsRepository batrepo, ISallesRepository salrepo, IMatieresRepository matrepo, IUeRepository uerepo, IResponsableUe resprepo) { this.enseignantRepository = repo; this.batimentRepository = batrepo; this.salleRepository = salrepo; this.matiereRepository = matrepo; this.ueRepository = uerepo; this.respRepository = resprepo; }
public AdministrationController(IEnseignantsRepository repo, IBatimentsRepository batrepo, ISallesRepository salrepo, IMatieresRepository matrepo, IUeRepository uerepo, IResponsableUe resprepo) { this.enseignantRepository = repo; this.batimentRepository = batrepo; this.salleRepository = salrepo; this.matiereRepository = matrepo; this.ueRepository = uerepo; this.respRepository = resprepo; }
// // GET: /Administration/ public AdministrationController() { var context = new PlannrContext(); enseignantRepository = new EnseignantsRepository(context); salleRepository = new SallesRepository(context); batimentRepository = new BatimentsRepository(context); matiereRepository = new MatieresRepository(context); ueRepository = new UeRepository(context); respRepository = new ResponsableUERepository(context); }
// Constructor public ReservationsController() { // Share same context for both repo var context = new PlannrContext(); this.repository = new ReservationsRepository(context); this.demandesRepository = new DemandesRepository(context); this.sallesRepository = new SallesRepository(context); this.creneauxRepository = new CreneauxHorairesRepository(context); this.ensRepository = new EnseignementsRepository(context); }
// Constructor public ReservationsController() { // Share same context for both repo var context = new PlannrContext(); this.repository = new ReservationsRepository(context); this.demandesRepository = new DemandesRepository(context); this.sallesRepository = new SallesRepository(context); this.creneauxRepository = new CreneauxHorairesRepository(context); this.ensRepository = new EnseignementsRepository(context); }
// // GET: /Administration/ public AdministrationController() { var context = new PlannrContext(); enseignantRepository = new EnseignantsRepository(context); salleRepository = new SallesRepository(context); batimentRepository = new BatimentsRepository(context); matiereRepository = new MatieresRepository(context); ueRepository = new UeRepository(context); respRepository = new ResponsableUERepository(context); }