Exemplo n.º 1
0
 public ReportsService(IStudentsRepository studentsRepository, ICoursesRepository coursesRepository, IExamsRepository examsRepository, IMapper mapper)
 {
     _studentsRepository = studentsRepository;
     _coursesRepository  = coursesRepository;
     _examsRepository    = examsRepository;
     _mapper             = mapper;
 }
Exemplo n.º 2
0
 public StudentsController(
     IStudentsRepository studentsRepository,
     IEmailer emailer)
 {
     this.studentsRepository = studentsRepository;
     _emailer = emailer;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 public RentController(IStudentsRepository usersRepository,
                       IRentalService rentalService, IInventory inventoryService)
 {
     _usersRepository  = usersRepository;
     _rentalService    = rentalService;
     _inventoryService = inventoryService;
 }
Exemplo n.º 6
0
        public void Init()
        {
            var universityDbFactory = new UniversitySqlLiteDbFactory();

            _universityDbContext = universityDbFactory.GetDbContext();
            _studentRepository   = new StudentsRepository(universityDbFactory);
        }
Exemplo n.º 7
0
 public HomeController(IInstructorsRepository instructorsRepository, IStudentsRepository studentsRepository, ICoursesRepository coursesRepository, ILogger <HomeController> logger)
 {
     _logger = logger;
     _instructorsRepository = instructorsRepository;
     _studentsRepository    = studentsRepository;
     _coursesRepository     = coursesRepository;
 }
Exemplo n.º 8
0
 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();
 }
Exemplo n.º 9
0
 public SchoolTerminal(IStudentsRepository studentsRepository, ITeachersRepository teachersRepository, IGradesRepository gradesRepository, ILessonClassesRepository lessonClassesRepository)
 {
     _studentsRepository      = studentsRepository;
     _teachersRepository      = teachersRepository;
     _gradesRepository        = gradesRepository;
     _lessonClassesRepository = lessonClassesRepository;
 }
Exemplo n.º 10
0
 public StudentsController(
     IStudentsRepository studentsRepository, 
     IEmailer emailer)
 {
     this.studentsRepository = studentsRepository;
     _emailer = emailer;
 }
Exemplo n.º 11
0
 protected internal SchoolsPage(ISchoolsRepository SchoolsRepository, IStudentsRepository studentsRepository) :
     base(SchoolsRepository)
 {
     PageTitle = "Koolid";
     Students  = new List <StudentView>();
     students  = studentsRepository;
 }
Exemplo n.º 12
0
        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);
        }
Exemplo n.º 13
0
 public StudentsController(IStudentsRepository context, IMapper mapper, ILogsService log, IHttpContextAccessor httpContextAccessor)
 {
     _context             = context;
     _mapper              = mapper;
     _log                 = log;
     _httpContextAccessor = httpContextAccessor;
 }
Exemplo n.º 14
0
 public StudentsViewModel(IStudentsRepository studentRepo)
 {
     Title        = "Students";
     StudentsRepo = studentRepo;
     NavigateToNewStudentPageCommand = new Command(async(obj) => await SelectedStudentAction(obj));
     SelectedStudentCommand          = new Command(async(obj) => { await SelectedStudentAction(obj); });
 }
Exemplo n.º 15
0
 public ExamsController(ISubjectsRepository subjectsRepository, IStudentsRepository studentsRepository, IProfessorsRepository professorsRepository, IExamsRepository examsRepository)
 {
     _subjectsRepository   = subjectsRepository;
     _studentsRepository   = studentsRepository;
     _professorsRepository = professorsRepository;
     _examsRepository      = examsRepository;
 }
Exemplo n.º 16
0
 public Program()
 {
     var client = new MongoClient();
     var db = "kulepool";
     _districtsRepo = new DistrictsRepository(client, db);
     _schoolsRepo = new SchoolsRepository(client, db);
     _studentsRepo = new StudentsRepository(client, db);
 }
Exemplo n.º 17
0
 public UnitOfWork(SOAContext context, ICoursesRepository courses, IExamsRepository exams,
                   IStudentsRepository students)
 {
     _context = context;
     Courses  = courses;
     Exams    = exams;
     Students = students;
 }
Exemplo n.º 18
0
 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;
 }
Exemplo n.º 20
0
 public UsersController(IUserRepository repository, IStudentsRepository studentsRepository,
                        ICompaniesRepository companiesRepository, IMapper mapper, LinkGenerator linkGenerator)
 {
     _repository         = repository;
     _mapper             = mapper;
     _linkGenerator      = linkGenerator;
     _studentsRepository = studentsRepository;
     _companyRepository  = companiesRepository;
 }
Exemplo n.º 21
0
 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;
        }
Exemplo n.º 24
0
 private void InitializeDbContext(IServiceProvider provider)
 {
     if (_context == null)
     {
         _context = provider.GetRequiredService <StudentsManagementDbContext>();
     }
     ActivityRepository = new ActivityRepository(_context);
     TeachersRepository = new TeachersRepository(_context);
     StudentsRepository = new StudentsRepository(_context);
 }
Exemplo n.º 25
0
        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;
        }
Exemplo n.º 26
0
 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();
 }
Exemplo n.º 27
0
 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;
 }
Exemplo n.º 28
0
 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;
 }
Exemplo n.º 30
0
 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();
 }
Exemplo n.º 31
0
 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;
 }
Exemplo n.º 35
0
        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;
 }
Exemplo n.º 37
0
 public StudentsController(IUserRepository userRepository, IStudentsRepository studentsRepository)
 {
     _userRepository = userRepository;
     _studentsRepository = studentsRepository;
 }
Exemplo n.º 38
0
 public StudentsController(IStudentsRepository studentsRepository, ICompetenciesHeadersRepository competenciesHeadersRepository)
 {
     this.studentsRepository = studentsRepository;
     this.competenciesHeadersRepository = competenciesHeadersRepository;
 }