public RandomSlotsGenerator(IRoomsRandomizer roomsRandomizer, ISubjectsRepository subjects, IInstructorsRepository instructors, int slotsCount = 80)
 {
     _roomsRandomizer       = roomsRandomizer;
     _subjectsRepository    = subjects;
     _instructorsRepository = instructors;
     _slotsCount            = slotsCount;
 }
예제 #2
0
 public HomeController(IInstructorsRepository instructorsRepository, IStudentsRepository studentsRepository, ICoursesRepository coursesRepository, ILogger <HomeController> logger)
 {
     _logger = logger;
     _instructorsRepository = instructorsRepository;
     _studentsRepository    = studentsRepository;
     _coursesRepository     = coursesRepository;
 }
        public SchoolUow(DbContext context,
                         ICoursesRepository courses,
                         IAsyncRepository<Department> departments,
                         IStudentsRepository students,
                         IInstructorsRepository instructors,
                         IEnrollmentsRepository enrollments,
                         IRepository<OfficeAssignment> offices)
        {
            _dbContext = context;

            _dbContext.Configuration.LazyLoadingEnabled = false;
            
            _courses = courses;
            _departments = departments;
            _students = students;
            _instructors = instructors;
            _enrollments = enrollments;
            _offices = offices;
        }
예제 #4
0
 public InstructorsService(IInstructorsRepository instructorsRepository)
 {
     _instructorsRepository = instructorsRepository;
 }
 public InstructorsController(IInstructorsRepository instructorsRepository,
                              IDepartmentsRepository departmentsRepository)
 {
     _instructorsRepository = instructorsRepository;
     _departmentsRepository = departmentsRepository;
 }
 public InstructorsController(IInstructorsRepository instructorsRepository, SchoolContext context)
 {
     _instructorsRepository = instructorsRepository;
     _context = context;
 }
예제 #7
0
 public InstructorsController(IInstructorsRepository instructorsRepository
                              )
 {
     _instructorsRepository = instructorsRepository;
 }