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 UnitOfWork(PayrollContext payrollContext, IDepartmentRepository departmentRepository, IGradeRepository gradeRepository, IRatingRepository ratingRepository) { _payrollContext = payrollContext; _departmentRepository = departmentRepository; _gradeRepository = gradeRepository; _ratingRepository = ratingRepository; }
public Grade UpdateGrade(Grade grade) { return(ExecuteFaultHandledOperation(() => { var groupNames = new List <string>() { BudgetModuleDefinition.GROUP_ADMINISTRATOR, BudgetModuleDefinition.GROUP_BUSINESS }; AllowAccessToOperation(BudgetModuleDefinition.SOLUTION_NAME, groupNames); IGradeRepository gradeRepository = _DataRepositoryFactory.GetDataRepository <IGradeRepository>(); Grade updatedEntity = null; if (grade.GradeId == 0) { updatedEntity = gradeRepository.Add(grade); } else { updatedEntity = gradeRepository.Update(grade); } return updatedEntity; })); }
public ScheduleController(IGradeRepository gradeRepository, ITeacherRepository teacherRepository, ILessonTimeRepository lessonTimeRepository, IScheduleRepository scheduleRepository) { this.teacherRepository = teacherRepository; this.gradeRepository = gradeRepository; this.lessonTimeRepository = lessonTimeRepository; this.scheduleRepository = scheduleRepository; }
public ImportUI() { incentiveRepository = EntityContainer.GetType <IIncentiveRepository>(); employeeRepository = EntityContainer.GetType <IEmployeeRepository>(); absenceRepository = EntityContainer.GetType <IAbsenceRepository>(); overTimeRepository = EntityContainer.GetType <IOverTimeRepository>(); branchRepository = EntityContainer.GetType <IBranchRepository>(); departmentRepository = EntityContainer.GetType <IDepartmentRepository>(); gradeRepository = EntityContainer.GetType <IGradeRepository>(); occupationRepository = EntityContainer.GetType <IOccupationRepository>(); principalRepository = EntityContainer.GetType <IPrincipalRepository>(); insuranceProgramRepository = EntityContainer.GetType <IInsuranceProgramRepository>(); employeeDepartmentRepository = EntityContainer.GetType <IEmployeeDepartmentRepository>(); employeeGradeRepository = EntityContainer.GetType <IEmployeeGradeRepository>(); employeeOccupationRepository = EntityContainer.GetType <IEmployeeOccupationRepository>(); employeePrincipalRepository = EntityContainer.GetType <IEmployeePrincipalRepository>(); employeeStatusRepository = EntityContainer.GetType <IEmployeeStatusRepository>(); employeeInsuranceRepository = EntityContainer.GetType <IEmployeeInsuranceRepository>(); employeeSalaryRepository = EntityContainer.GetType <IEmployeeSalaryRepository>(); InitializeComponent(); }
public GradeService(IGradeRepository gradeRepository, IExamRepository examRepository, IStudentRepository studentRepository) { _gradeRepository = gradeRepository; _examRepository = examRepository; _studentRepository = studentRepository; }
public GradeController(IGradeRepository gradeRepository, IAcademicYearRepository academicYearRepository) { if (gradeRepository == null) throw new ArgumentNullException("gradeRepository"); _gradeRepository = gradeRepository; _academicYearRepository = academicYearRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public ExamController(IExamRepository iExamRepository, IGradeRepository iGradeRepository, ICourseRepository iCourseRepository, IUser iUser) { this._iExamRepository = iExamRepository; this._iGradeRepository = iGradeRepository; this._iCourseRepository = iCourseRepository; GID = (iUser.GetClaimValueByType("GID").FirstOrDefault()).ObjToInt(); }
public StudentUnitOfWork(FrameworkContext context, IStudentRepository studentRepository, ISubjectRepository subjectRepository , IGradeRepository gradeRepository) : base(context) { StudentRepository = studentRepository; SubjectRepository = subjectRepository; GradeRepository = gradeRepository; }
public ActorService(IActorRepository actorRepository, IMovieRepository movieRepository, IGradeRepository gradeRepository, IMovieActorRepository movieActorRepository, IMapper mapper) { _actorRepository = actorRepository; _movieRepository = movieRepository; _gradeRepository = gradeRepository; _movieActorRepository = movieActorRepository; _mapper = mapper; }
public EducationLevelController(IEducationLevelRepository areaReposity, IGradeRepository gradeRepository, IUserRepository userRepository, IRoleRepository roleRepository) { _areaReposity = areaReposity; _gradeRepository = gradeRepository; _userRepository = userRepository; _roleRepository = roleRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public PensumController(IPensumRepository pensumRepository, IGradeRepository gradeRepository, ICourseRepository courseRepository, IAcademicGradeRepository academicGradeRepository) { _pensumRepository = pensumRepository; _gradeRepository = gradeRepository; _courseRepository = courseRepository; _academicGradeRepository = academicGradeRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public EnrollController(IAcademicYearRepository academicYearRepository, IStudentRepository studentRepository, IEnrollRepository enrollRepository, IGradeRepository gradeRepository) { _studentRepository = studentRepository; _enrollRepository = enrollRepository; _academicYearRepository = academicYearRepository; _gradeRepository = gradeRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public ImportDataController(IImportDataRepository importDataRepository ,IGradeRepository gradeRepository ,IAcademicYearRepository academicYearRepository) { _importDataRepository = importDataRepository; _gradeRepository = gradeRepository; _academicYearRepository = academicYearRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public Mock <IServiceProvider> GetServiceProvider(IGradeRepository repository) { var spMock = new Mock <IServiceProvider>(); spMock.Setup(s => s.GetService(typeof(IGradeRepository))) .Returns(repository); return(spMock); }
public ImportDataController(IImportDataRepository importDataRepository , IGradeRepository gradeRepository , IAcademicYearRepository academicYearRepository) { _importDataRepository = importDataRepository; _gradeRepository = gradeRepository; _academicYearRepository = academicYearRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public TeacherController(ITeacherRepository iTeacherRepository, ICCTRepository iCCTRepository, IGradeRepository iGradeRepository, IClazzRepository iClazzRepository, ICourseRepository iCourseRepository, IUser iUser) { this._iTeacherRepository = iTeacherRepository; this._iCCTRepository = iCCTRepository; this._iGradeRepository = iGradeRepository; this._iClazzRepository = iClazzRepository; this._iCourseRepository = iCourseRepository; GID = (iUser.GetClaimValueByType("GID").FirstOrDefault()).ObjToInt(); }
public GradeController(IGradeRepository gradeRepository, IAcademicYearRepository academicYearRepository) { if (gradeRepository == null) { throw new ArgumentNullException("gradeRepository"); } _gradeRepository = gradeRepository; _academicYearRepository = academicYearRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public GradeController(IGradeRepository gradeRepository, IAcademicGradeRepository academicGradeRepository, IPensumRepository pensumRepository, IEducationLevelRepository educationLevelRepository, ISessionManagementService sessionManagementService, IUserRepository userRepository) { _gradeRepository = gradeRepository; _academicGradeRepository = academicGradeRepository; _pensumRepository = pensumRepository; _educationLevelRepository = educationLevelRepository; _sessionManagementService = sessionManagementService; _userRepository = userRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public EnrollController(IStudentRepository studentRepository, IGradeRepository gradeRepository, IAcademicGradeRepository academicGradeRepository, IUserRepository userRepository, ISessionManagementService sessionManagementService) { _studentRepository = studentRepository; _gradeRepository = gradeRepository; _academicGradeRepository = academicGradeRepository; _userRepository = userRepository; _sessionManagementService = sessionManagementService; _viewMessageLogic = new ViewMessageLogic(this); }
public LessonPlannerController(ILogger <LessonPlannerController> logger, ILessonPlannerRepository lessonPlannerRepository, ISubjectRepository subjectRepository, IGradeRepository gradeRepository ) { _logger = logger; _lessonPlannerRepository = lessonPlannerRepository; _subjectRepository = subjectRepository; _gradeRepository = gradeRepository; }
public StudentService( IGradeRepository gradeRepository, IStudentRepository studentRepository, ICourseRepository courseRepository, IMapper mapper) { _gradeRepository = gradeRepository; _studentRepository = studentRepository; _courseRepository = courseRepository; _mapper = mapper; }
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 AcademicYearController(IAcademicYearRepository academicYearRepository, IUserRepository userRepository, ISessionManagementService sessionManagementService, IGradeRepository gradeRepository, IPensumRepository pensumRepository, IAcademicGradeRepository academicGradeRepository, IAcademicCourseRepository academicCourseRepository) { _academicYearRepository = academicYearRepository; _userRepository = userRepository; _sessionManagementService = sessionManagementService; _gradeRepository = gradeRepository; _pensumRepository = pensumRepository; _academicGradeRepository = academicGradeRepository; _academicCourseRepository = academicCourseRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public SalaryUpdateUI() { branchRepository = EntityContainer.GetType <IBranchRepository>(); gradeRepository = EntityContainer.GetType <IGradeRepository>(); occupationReposiotry = EntityContainer.GetType <IOccupationRepository>(); employeeRepository = EntityContainer.GetType <IEmployeeRepository>(); employeeSalaryRepository = EntityContainer.GetType <IEmployeeSalaryRepository>(); salaryUpdateRepository = EntityContainer.GetType <ISalaryUpdateRepository>(); InitializeComponent(); }
public DataImportController(IDataImportService dataImportService , IGradeRepository gradeRepository , IAcademicYearRepository academicYearRepository, IAcademicGradeRepository academicGradeRepository, IUserRepository userRepository, ISessionManagementService sessionManagementService) { _dataImportService = dataImportService; _gradeRepository = gradeRepository; _academicYearRepository = academicYearRepository; _academicGradeRepository = academicGradeRepository; _userRepository = userRepository; _sessionManagementService = sessionManagementService; _viewMessageLogic = new ViewMessageLogic(this); }
public ExamService(IExamRepository examRepository, IGradeRepository gradeRepository, ICourseRepository courseRepository, IStudentRepository studentRepository, IMailService mailService, ITeacherRepository teacherRepository, IDidacticRepository didacticRepository) { _examRepository = examRepository; _gradeRepostory = gradeRepository; _courseRepository = courseRepository; _studentRepository = studentRepository; _teacherRepository = teacherRepository; _didacticRepository = didacticRepository; _mailService = mailService; }
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 StudentAffairsController(IAcademicYearRepository academicYearRepo, IUserRepository authRepo, IGradeRepository gradeRepo, IClassRepository classRepo, IStudentRepository studentRepo) { _academicYearRepo = academicYearRepo; _authRepo = authRepo; _gradeRepo = gradeRepo; _classRepo = classRepo; _studentRepo = studentRepo; }
public void FindGrades_ValidCall() { Mock <IGradeRepository> mockGradeRepository = MockGradeRepository; mockGradeRepository.Setup(mr => mr.FindAll()).Returns(GetSampleGrade()); _mockGradeRepository = mockGradeRepository.Object; IEnumerable <GradeModel> Grades = _mockGradeRepository.FindAll(); Assert.True(Grades != null); // Test if null Assert.AreEqual(GetSampleGrade().Count(), Grades.Count()); // Verify the correct Number }
public ClassroomUnitOfWork( ClassroomContext context, IStudentRepository studentRepository, ICourseRepository courseRepository, IGradeRepository gradeRepository, IUserRepository userRepository ) : base(context) { Students = studentRepository; Courses = courseRepository; Grades = gradeRepository; Users = userRepository; }
public AcademicYearService( IAcademicYearRepository academicYearRepository, IGradeRepository gradeRepository, ISchoolClassRepository schoolClassRepository, ISchoolThemeRepository schoolThemeRepository, ISubjectRepository subjectRepository) { this.academicYearRepository = academicYearRepository; this.gradeRepository = gradeRepository; this.schoolClassRepository = schoolClassRepository; this.schoolThemeRepository = schoolThemeRepository; this.subjectRepository = subjectRepository; }
public SchoolService(ISchoolRepository schoolRepository, IUserVisitedSchoolRepository userVisitedSchoolRepository, IGradeRepository gradeRepository, IStudySubjectRepository studySubjectRepository, ISemesterRepository semesterRepository, ISemesterSubjectRepository semesterSubjectRepository, ISemesterUserRepository semesterUserRepository, IUserRepository userRepository, IUnitOfWork unitOfWork) { _schoolRepository = schoolRepository; _userVisitedSchoolRepository = userVisitedSchoolRepository; _gradeRepository = gradeRepository; _studySubjectRepository = studySubjectRepository; _semesterRepository = semesterRepository; _semesterSubjectRepository = semesterSubjectRepository; _semesterUserRepository = semesterUserRepository; _userRepository = userRepository; _unitOfWork = unitOfWork; }
public HomeworkController(IHomeworkRepository homeworkRepository, IAcademicYearDetailsRepository academicYearDetailRepository, IAcademicYearRepository academicYearRepository, IGradeRepository gradeRepository, ICourseRepository courseRepository, IStudentRepository studentRepository, IEnrollRepository enrollsRepository, ISessionManagementRepository sessionManagementRepository, ISecurityRepository securityRepository, IParentRepository parentRepository) { _homeworkRepository = homeworkRepository; _academicYearRepository = academicYearRepository; _gradeRepository = gradeRepository; _courseRepository = courseRepository; _academicYearDetailRepository = academicYearDetailRepository; StudentRepository = studentRepository; EnrollsRepository = enrollsRepository; _sessionManagementRepository = sessionManagementRepository; SecurityRepository = securityRepository; _parentRepository = parentRepository; }
public NotificationController(ISessionManagementRepository sessionManagement, IUserRepository userRepository, INotificationRepository notificationRepository, INotificationTypeRepository notificationTypeRepository, IPeopleRepository peopleRepository, ITeacherRepository teacherRepository, IAcademicYearDetailsRepository academicYearDetailRepository, IStudentRepository studentRepository, IParentRepository parentRepository, IGradeRepository gradeRepository, IAcademicYearRepository academicYearRepository, IEnrollRepository enrollRepository, IEducationLevelRepository areaReporsitory) { _sessionManagement = sessionManagement; _userRepository = userRepository; _notificationRepository = notificationRepository; _notificationTypeRepository = notificationTypeRepository; _peopleRepository = peopleRepository; _teacherRepository = teacherRepository; _academicYearDetailRepository = academicYearDetailRepository; _parentRepository = parentRepository; _studentRepository = studentRepository; _gradeRepository = gradeRepository; _academicYear = academicYearRepository; _enrollRepository = enrollRepository; _areaReporsitory = areaReporsitory; _viewMessageLogic = new ViewMessageLogic(this); }
public AcademicYearController(IAcademicYearRepository academicYearRepository, IGradeRepository gradeRepository) { _academicYearRepository = academicYearRepository; _gradeRepository = gradeRepository; _viewMessageLogic = new ViewMessageLogic(this); }
public ContinentController(IGradeRepository gradeRepository) { repository = gradeRepository; }
public ClimateChartController(IGradeRepository gradeRepository) { this.gradeRepository = gradeRepository; }
public SchoolYearController(IGradeRepository gradeRepository) { this.gradeRepository = gradeRepository; }