// 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; }
// Constructor public BookController() { // Share same context for both repo var context = new PlannrContext(); this.repository = new DemandesRepository(context); this.enseignementsRepository = new EnseignementsRepository(context); this.creneauxHorairesRepository = new CreneauxHorairesRepository(context); }
// Constructor public BookController() { // Share same context for both repo var context = new PlannrContext(); this.repository = new DemandesRepository(context); this.enseignementsRepository = new EnseignementsRepository(context); this.creneauxHorairesRepository = new CreneauxHorairesRepository(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); }
public CreneauxHorairesController() { var context = new PlannrContext(); this.repo = new CreneauxHorairesRepository(context); }
// 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; }
// 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; }
public CreneauxHorairesController() { var context = new PlannrContext(); this.repo = new CreneauxHorairesRepository(context); }