// 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;
 }
Esempio n. 2
0
 public ManagerController()
 {
     var db = new PlannrContext();
     this.demandesRepository = new DemandesRepository(db);
     this.reservationsRepository = new ReservationsRepository(db);
     this.enseignantsRepository = new EnseignantsRepository(db);
 }
Esempio n. 3
0
 // 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;
 }
Esempio n. 4
0
        // Constructor
        public BookController()
        {
            // Share same context for both repo
            var context = new PlannrContext();

            this.repository = new DemandesRepository(context);
            this.enseignementsRepository = new EnseignementsRepository(context);
        }
Esempio n. 5
0
        public ManagerController()
        {
            var db = new PlannrContext();

            this.demandesRepository     = new DemandesRepository(db);
            this.reservationsRepository = new ReservationsRepository(db);
            this.enseignantsRepository  = new EnseignantsRepository(db);
        }
Esempio n. 6
0
        // Constructor
        public BookController()
        {
            // Share same context for both repo
            var context = new PlannrContext();

            this.repository = new DemandesRepository(context);
            this.enseignementsRepository = new EnseignementsRepository(context);
        }
Esempio n. 7
0
 // 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);
        }
Esempio n. 9
0
 // Give it as a parameter aswel
 public BookController(IDemandesRepository repo, IEnseignementsRepository ensRepo)
 {
     this.repository = repo;
     this.enseignementsRepository = ensRepo;
 }
Esempio n. 10
0
 // Give it as a parameter aswel for unit testing
 public BookController(IDemandesRepository repo, IEnseignementsRepository ensRepo, ICreneauxHorairesRepository crRepo)
 {
     this.repository = repo;
     this.enseignementsRepository    = ensRepo;
     this.creneauxHorairesRepository = crRepo;
 }
Esempio n. 11
0
 // Give it as a parameter aswel for unit testing
 public BookController(IDemandesRepository repo, IEnseignementsRepository ensRepo, ICreneauxHorairesRepository crRepo)
 {
     this.repository = repo;
     this.enseignementsRepository = ensRepo;
     this.creneauxHorairesRepository = crRepo;
 }
Esempio n. 12
0
 // Give it as a parameter aswel
 public BookController(IDemandesRepository repo, IEnseignementsRepository ensRepo)
 {
     this.repository = repo;
     this.enseignementsRepository = ensRepo;
 }