public ReportsService(IStudentsRepository studentsRepository, ICoursesRepository coursesRepository, IExamsRepository examsRepository, IMapper mapper) { _studentsRepository = studentsRepository; _coursesRepository = coursesRepository; _examsRepository = examsRepository; _mapper = mapper; }
public StudentsController( IStudentsRepository studentsRepository, IEmailer emailer) { this.studentsRepository = studentsRepository; _emailer = emailer; }
public GeneralService (IDbWorker dbWorker, IDepartmentRepository departmentRepository, IDisciplineRepository disciplineRepository, IDisciplineYearRepository disciplineYearRepository, IDisciplineWorkloadRepository disciplineWorkloadRepository, IEmployeeRepository employeeRepository, IFacultyRepository facultyRepository, IGroupsRepository groupsRepository, ISemesterRepository semesterRepository, ISpecialityRepository specialityRepository, IStudentsRepository studentsRepository, IStudyYearRepository studyYearRepository, IWorkloadRepository workloadRepository, ISpecialPositionRepository specialPositionRepository) : base(dbWorker) { _departmentRepository = departmentRepository; _disciplineRepository = disciplineRepository; _disciplineYearRepository = disciplineYearRepository; _disciplineWorkloadRepository = disciplineWorkloadRepository; _employeeRepository = employeeRepository; _facultyRepository = facultyRepository; _groupsRepository = groupsRepository; _semesterRepository = semesterRepository; _specialityRepository = specialityRepository; _studentsRepository = studentsRepository; _studyYearRepository = studyYearRepository; _workloadRepository = workloadRepository; _specialPositionRepository = specialPositionRepository; }
public CommandInterpreter(IContentComparer judge, IStudentsRepository repository, IDirectoryManager IOManager) { this.container = new DependencyContainer(typeof(InjectAttribute)); container.AddDependency <IContentComparer, IContentComparer>(judge); container.AddDependency <IStudentsRepository, IStudentsRepository>(repository); container.AddDependency <IDirectoryManager, IDirectoryManager>(IOManager); }
public RentController(IStudentsRepository usersRepository, IRentalService rentalService, IInventory inventoryService) { _usersRepository = usersRepository; _rentalService = rentalService; _inventoryService = inventoryService; }
public void Init() { var universityDbFactory = new UniversitySqlLiteDbFactory(); _universityDbContext = universityDbFactory.GetDbContext(); _studentRepository = new StudentsRepository(universityDbFactory); }
public HomeController(IInstructorsRepository instructorsRepository, IStudentsRepository studentsRepository, ICoursesRepository coursesRepository, ILogger <HomeController> logger) { _logger = logger; _instructorsRepository = instructorsRepository; _studentsRepository = studentsRepository; _coursesRepository = coursesRepository; }
public StudentsController(IStudentsRepository iStudentsRepository, IGradeRepository iGradeRepository, IClazzRepository iClazzRepository, IUser iUser) { this._iStudentsRepository = iStudentsRepository; this._iGradeRepository = iGradeRepository; this._iClazzRepository = iClazzRepository; GID = (iUser.GetClaimValueByType("GID").FirstOrDefault()).ObjToInt(); }
public SchoolTerminal(IStudentsRepository studentsRepository, ITeachersRepository teachersRepository, IGradesRepository gradesRepository, ILessonClassesRepository lessonClassesRepository) { _studentsRepository = studentsRepository; _teachersRepository = teachersRepository; _gradesRepository = gradesRepository; _lessonClassesRepository = lessonClassesRepository; }
public StudentsController( IStudentsRepository studentsRepository, IEmailer emailer) { this.studentsRepository = studentsRepository; _emailer = emailer; }
protected internal SchoolsPage(ISchoolsRepository SchoolsRepository, IStudentsRepository studentsRepository) : base(SchoolsRepository) { PageTitle = "Koolid"; Students = new List <StudentView>(); students = studentsRepository; }
public AddEditStudentViewModel(IStudentsRepository studentsRepository, ILevelsRepository levelsRepository, ISectionsRepository sectionsRepository, IContactsRepository contactsRepository, IRelBiometricsRepository relBiometricsRepository, IBiometricsRepository biometricsRepository, IRelOrganizationsRepository relOrganizationsRepository, IOrganizationsRepository organizationsRepository) { _studentsRepository = studentsRepository; _levelsRepository = levelsRepository; _sectionsRepository = sectionsRepository; _contactsRepository = contactsRepository; _relOrganizationsRepository = relOrganizationsRepository; _relBiometricsRepository = relBiometricsRepository; _biometricsRepository = biometricsRepository; _organizationsRepository = organizationsRepository; _enrollBiometricsViewModel = ContainerHelper.Container.Resolve <EnrollBiometricsViewModel>(); currentViewModel = _enrollBiometricsViewModel; CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); OpenFileCommand = new RelayCommand(OnOpenFile); AddContactCommand = new RelayCommand(OnAddContact, CanAddContact); DeleteContactCommand = new RelayCommand <Contact>(OnDeleteContact); AddGroupCommand = new RelayCommand(OnAddGroup, CanAddGroup); DeleteGroupCommand = new RelayCommand <Organization>(OnDeleteGroup); DeleteBiometricCommand = new RelayCommand <Biometric>(OnDeleteBiometric); }
public StudentsController(IStudentsRepository context, IMapper mapper, ILogsService log, IHttpContextAccessor httpContextAccessor) { _context = context; _mapper = mapper; _log = log; _httpContextAccessor = httpContextAccessor; }
public StudentsViewModel(IStudentsRepository studentRepo) { Title = "Students"; StudentsRepo = studentRepo; NavigateToNewStudentPageCommand = new Command(async(obj) => await SelectedStudentAction(obj)); SelectedStudentCommand = new Command(async(obj) => { await SelectedStudentAction(obj); }); }
public ExamsController(ISubjectsRepository subjectsRepository, IStudentsRepository studentsRepository, IProfessorsRepository professorsRepository, IExamsRepository examsRepository) { _subjectsRepository = subjectsRepository; _studentsRepository = studentsRepository; _professorsRepository = professorsRepository; _examsRepository = examsRepository; }
public Program() { var client = new MongoClient(); var db = "kulepool"; _districtsRepo = new DistrictsRepository(client, db); _schoolsRepo = new SchoolsRepository(client, db); _studentsRepo = new StudentsRepository(client, db); }
public UnitOfWork(SOAContext context, ICoursesRepository courses, IExamsRepository exams, IStudentsRepository students) { _context = context; Courses = courses; Exams = exams; Students = students; }
public StudentsController(IStudentsRepository studentsRepository, IProfessorsRepository professorsRepository, ISubjectsRepository subjectsRepository, IDepartamentsRepository departamentsRepository, IStatusRepository statusRepository) { _studentsRepository = studentsRepository; _professorsRepository = professorsRepository; _subjectsRepository = subjectsRepository; _departamentsRepository = departamentsRepository; _statusRepository = statusRepository; }
public StudentsController(IStudentsRepository studentsRepository, IEducationsRepository educationsRepository, ICompetencyHeadersRepository competencyHeadersRepository, IEmailer emailer, ICompetenciesRepository competenciesRepository) { this._studentsRepository = studentsRepository; this._educationsRepository = educationsRepository; this._competencyHeadersRepository = competencyHeadersRepository; this._emailer = emailer; this._competenciesRepository = competenciesRepository; }
public UsersController(IUserRepository repository, IStudentsRepository studentsRepository, ICompaniesRepository companiesRepository, IMapper mapper, LinkGenerator linkGenerator) { _repository = repository; _mapper = mapper; _linkGenerator = linkGenerator; _studentsRepository = studentsRepository; _companyRepository = companiesRepository; }
public StudentRegistrationService( ISubscriptionsRepository subscriptionsRepository, ISessionsRepository sessionsRepository, IStudentsRepository studentsRepository) { _subscriptionsRepository = subscriptionsRepository ?? throw new ArgumentNullException(nameof(subscriptionsRepository)); _sessionsRepository = sessionsRepository ?? throw new ArgumentNullException(nameof(sessionsRepository)); _studentsRepository = studentsRepository ?? throw new ArgumentNullException(nameof(studentsRepository)); }
public LabManDataAggregationService(IPersistenceContext persistenceContext) { this.persistenceContext = persistenceContext; if (this.persistenceContext != null) { studentsRepository = this.persistenceContext.GetStudentsRepository(); groupsRepository = this.persistenceContext.GetGroupsRepository(); } }
public DbUnitOfWork() { this.context = new SchoolsSystemContext(); this.studentsRepository = new DbStudentsRepository(context); this.schoolsRepository = new DbRepository<School>(context); this.marksRepository = new DbRepository<Mark>(context); this.isDisposed = false; }
private void InitializeDbContext(IServiceProvider provider) { if (_context == null) { _context = provider.GetRequiredService <StudentsManagementDbContext>(); } ActivityRepository = new ActivityRepository(_context); TeachersRepository = new TeachersRepository(_context); StudentsRepository = new StudentsRepository(_context); }
public CardStudentAuthoriser( ISmartReaderListener smartReaderListener, IStudentsRepository studentsRepository) { _smartReaderListener = smartReaderListener ?? throw new ArgumentNullException(nameof(smartReaderListener)); _studentsRepository = studentsRepository ?? throw new ArgumentNullException(nameof(studentsRepository)); _smartReaderListener.CardInserted += OnCardInserted; _smartReaderListener.CardRemoved += OnCardRemoved; }
public ExamDetailScoreController(IExamDetailRepository iExamDetailRepository, IExamRepository iExamRepository, IGradeRepository iGradeRepository, ICourseRepository iCourseRepository, IExamDetailScoreRepository iExamDetailScoreRepository, IStudentsRepository iStudentsRepository, IUser iUser) { this._iExamDetailRepository = iExamDetailRepository; this._iExamRepository = iExamRepository; this._iGradeRepository = iGradeRepository; this._iCourseRepository = iCourseRepository; this._iExamDetailScoreRepository = iExamDetailScoreRepository; this._iStudentsRepository = iStudentsRepository; GID = (iUser.GetClaimValueByType("GID").FirstOrDefault()).ObjToInt(); }
public FSNStudentController(IExScoreRepository iExScoreRepository, IStudentsRepository iStudentsRepository, IExamRepository iExamRepository, ICourseRepository iCourseRepository, IClazzRepository iClazzRepository, IGradeRepository iGradeRepository, ICCTRepository iCCTRepository, ITeacherRepository iTeacherRepository) { this._iExScoreRepository = iExScoreRepository; this._iStudentsRepository = iStudentsRepository; this._iExamRepository = iExamRepository; this._iCourseRepository = iCourseRepository; this._iClazzRepository = iClazzRepository; this._iGradeRepository = iGradeRepository; this._iCCTRepository = iCCTRepository; this._iTeacherRepository = iTeacherRepository; }
public SchoolUnitOfWork(SchoolDbContext dbContext, ICoursesRepository coursesRepository, IStudentsRepository studentsRepository, IMessagesRepository messagesRepository, IEventSerializer eventSerializer) : base(dbContext) { CoursesRepository = coursesRepository ?? throw new ArgumentNullException(nameof(coursesRepository)); StudentsRepository = studentsRepository ?? throw new ArgumentNullException(nameof(studentsRepository)); MessagesRepository = messagesRepository ?? throw new ArgumentNullException(nameof(messagesRepository)); _eventSerializer = eventSerializer ?? throw new ArgumentNullException(nameof(eventSerializer)); }
public ProfileController( // user manager to find teacher IUsersRepository usersRepository, IStudentsRepository studentRepository, EducationPlatformContext context ) { _usersRepository = usersRepository; _studentRepository = studentRepository; _context = context; }
public FSNController(IExScoreRepository iExScoreRepository, IStudentsRepository iStudentsRepository, IExamRepository iExamRepository, ICourseRepository iCourseRepository, IClazzRepository iClazzRepository, IGradeRepository iGradeRepository, IUser iUser, ICCTRepository iCCTRepository, ITeacherRepository iTeacherRepository) { this._iExScoreRepository = iExScoreRepository; this._iStudentsRepository = iStudentsRepository; this._iExamRepository = iExamRepository; this._iCourseRepository = iCourseRepository; this._iClazzRepository = iClazzRepository; this._iGradeRepository = iGradeRepository; this._iCCTRepository = iCCTRepository; this._iTeacherRepository = iTeacherRepository; GID = (iUser.GetClaimValueByType("GID").FirstOrDefault()).ObjToInt(); }
public DataManager(IDetailsOfTheTestRepository detailsOfTheTestRepository, IStudentAnswersRepository studentAnswersRepository, IAnswersRepository answersRepository, IQuestionsRepository questionsRepository, ITestsRepository testsRepository, IRolesRepository rolesRepository, IGroupsRepository groupsRepository, IStudentsRepository studentsRepository, IUsersRepository usersRepository) { Users = usersRepository; Roles = rolesRepository; Tests = testsRepository; Groups = groupsRepository; Answers = answersRepository; Students = studentsRepository; Questions = questionsRepository; StudentAnswers = studentAnswersRepository; DetailsOfTheTest = detailsOfTheTestRepository; }
public AttendanceViewModel(IStudentsRepository studentsRepository, BiometricsRepository biometricsRepository, RelBiometricsRepository relBiometricsRepository, AttendancesRepository attendancesRepository) { _studentsRepository = studentsRepository; _biometricsRepository = biometricsRepository; _relBiometricsRepository = relBiometricsRepository; _attendancesRepository = attendancesRepository; Initialize(true); _attendanceLogs = new ObservableCollection <AttendanceLog>(); _mainClockViewModel = ContainerHelper.Container.Resolve <MainClockViewModel>(); ResendCommand = new RelayCommand(OnResend); Start(); //Begin capture }
public override void SetUp() { base.SetUp(); UnitOfWork = Substitute.For <IUnitOfWork>(); TeachersRepository = Substitute.For <ITeachersRepository>(); TeachersRepository.UnitOfWork.Returns(UnitOfWork); StudentsRepository = Substitute.For <IStudentsRepository>(); StudentsRepository.UnitOfWork.Returns(UnitOfWork); CoursesRepository = Substitute.For <ICoursesRepository>(); CoursesRepository.UnitOfWork.Returns(UnitOfWork); }
public CoursesController( ICoursesRepository coursesRepository, ISubjectsRepository subjectsRepository, IModulesRepository modulesRepository, IUsersRepository usersRepository, IStudentsRepository studentsRepository, UserManager <User> userManager ) { _coursesRepository = coursesRepository; _subjectsRepository = subjectsRepository; _modulesRepository = modulesRepository; _usersRepository = usersRepository; _studentsRepository = studentsRepository; _userManager = userManager; }
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; }
public DbStudentsRepositoryTests() { this.unitOfWork = new DbUnitOfWork(); this.studentsRepository = this.unitOfWork.StudentsRepository; }
public StudentsController(IUserRepository userRepository, IStudentsRepository studentsRepository) { _userRepository = userRepository; _studentsRepository = studentsRepository; }
public StudentsController(IStudentsRepository studentsRepository, ICompetenciesHeadersRepository competenciesHeadersRepository) { this.studentsRepository = studentsRepository; this.competenciesHeadersRepository = competenciesHeadersRepository; }