示例#1
0
 public AccountsController(IAccountsService userService, IStudentsService studentsService, IParentsService parentsService, ITeachersService teachersService)
 {
     service = userService;
     this.studentsService = studentsService;
     this.parentsService  = parentsService;
     this.teachersService = teachersService;
 }
示例#2
0
 //private readonly ILevelsService levelsService;
 public BaseController(IGroupsService groupsService, ITeachersService teachersService, IStudentsService studentsService, IParentsService parentsService /*, ILevelsService levelsService*/)
 {
     this.groupsService   = groupsService;
     this.teachersService = teachersService;
     this.studentsService = studentsService;
     this.parentsService  = parentsService;
     //this.levelsService = levelsService;
 }
示例#3
0
 public StudentsService(IUnitOfWork db, IUsersService usersService, IParentsService parentsService, IFormsService formsService, StudentToStudentDTO toDTO, IEmailsService emailsService)
 {
     this.db             = db;
     this.usersService   = usersService;
     this.parentsService = parentsService;
     this.formsService   = formsService;
     this.toDTO          = toDTO;
     this.emailsService  = emailsService;
 }
示例#4
0
 public MeController(
     IParentsService parentsService,
     ITeachersService teachersService,
     IAdminService adminService,
     IStudentsService studentsService)
 {
     _parentsService  = parentsService;
     _teachersService = teachersService;
     _adminService    = adminService;
     _studentsService = studentsService;
 }
示例#5
0
 public void Setup()
 {
     _parentsRepositoryMock        = new Mock <IDeletableEntityRepository <Parent> >();
     _studentsRepositoryMock       = new Mock <IRepository <Student> >();
     _studentParentsRepositoryMock = new Mock <IDeletableEntityRepository <StudentParent> >();
     _idGeneratorService           = new IdGeneratorService();
     _parentsService = new ParentsService(
         _parentsRepositoryMock.Object,
         _studentsRepositoryMock.Object,
         _studentParentsRepositoryMock.Object,
         _idGeneratorService);
 }
示例#6
0
 public CalculatorService(
     IRepository <Candidate> candidatesRepository,
     IRepository <CandidateApplication> candidateApplicationRepository,
     IParentsService parentsService,
     IRepository <CriteriaForCandidate> criteriaForCandidatesRepository,
     ICriteriasService criteriasService)
 {
     this.candidatesRepository            = candidatesRepository;
     this.parentsService                  = parentsService;
     this.criteriasService                = criteriasService;
     this.criteriaForCandidatesRepository = criteriaForCandidatesRepository;
     this.candidateApplicationRepository  = candidateApplicationRepository;
 }
示例#7
0
        public HomeController(
            UserManager <SystemUser> userManager,
            IParentsService parentsService,
            ICandidatesService candidatesService,
            ISchoolsService schoolsService)
        {
            this.userManager       = userManager;
            this.parentsService    = parentsService;
            this.candidatesService = candidatesService;
            this.schoolsService    = schoolsService;

            this.userHasParents = false;
        }
示例#8
0
 public ParentController(
     IParentsService parentsService,
     IDistrictsService districtsService,
     IAddressesService addressesService,
     ICalculatorService calculatorService,
     ICandidatesService candidatesService)
 {
     this.parentsService    = parentsService;
     this.districtsService  = districtsService;
     this.addressesService  = addressesService;
     this.calculatorService = calculatorService;
     this.candidatesService = candidatesService;
 }
示例#9
0
 public ClassesController(
     UserManager <ApplicationUser> userManager,
     IClassesService classesService,
     ISchoolsServices schoolsServices,
     ITeachersService teachersService,
     IStudentsService studentsService,
     IParentsService parentsService)
 {
     _userManager     = userManager;
     _classesService  = classesService;
     _schoolsServices = schoolsServices;
     _teachersService = teachersService;
     _studentsService = studentsService;
     _parentsService  = parentsService;
 }
示例#10
0
 public SubjectsController(
     ILogger <SubjectsController> logger,
     UserManager <ApplicationUser> userManager,
     ISubjectsService subjectsService,
     ITeachersService teachersService,
     IStudentsService studentsService,
     IParentsService parentsService,
     ISchoolsServices schoolsServices)
 {
     _logger          = logger;
     _userManager     = userManager;
     _subjectsService = subjectsService;
     _teachersService = teachersService;
     _studentsService = studentsService;
     _parentsService  = parentsService;
     _schoolsServices = schoolsServices;
 }
示例#11
0
 public CandidateController(
     UserManager <SystemUser> userManager,
     IParentsService parentsService,
     ICandidatesService candidatesService,
     ISchoolsService schoolsService,
     ICloudinaryService cloudinaryService,
     ICalculatorService calculatorService,
     ICriteriasService criteriasService,
     IAdminService adminService)
 {
     this.userManager       = userManager;
     this.parentsService    = parentsService;
     this.candidatesService = candidatesService;
     this.calculatorService = calculatorService;
     this.schoolsService    = schoolsService;
     this.cloudinaryService = cloudinaryService;
     this.criteriasService  = criteriasService;
     this.adminService      = adminService;
 }
示例#12
0
 public ManagementController(
     ILogger <ManagementController> logger,
     UserManager <ApplicationUser> userManager,
     ISchoolsServices schoolsServices,
     IStudentsService studentsService,
     ITeachersService teachersService,
     ISubjectsService subjectsService,
     IParentsService parentsService,
     IClassesService classesService)
 {
     _logger          = logger;
     _userManager     = userManager;
     _schoolsServices = schoolsServices;
     _studentsService = studentsService;
     _teachersService = teachersService;
     _subjectsService = subjectsService;
     _parentsService  = parentsService;
     _classesService  = classesService;
 }
示例#13
0
 public CandidatesService(
     UserManager <SystemUser> userManager,
     IRepository <Candidate> candidatesRepository,
     IRepository <CandidateApplication> candidateApplicationsRepository,
     IParentsService parentsService,
     ICriteriasService criteriasService,
     IRepository <CandidateApplication> schoolCandidateRepository,
     ISchoolsService schoolService,
     ICalculatorService calculatorService,
     ICloudinaryService claudinaryService,
     IRepository <Document> documentRepository)
 {
     this.userManager                     = userManager;
     this.candidatesRepository            = candidatesRepository;
     this.candidateApplicationsRepository = candidateApplicationsRepository;
     this.parentsService                  = parentsService;
     this.criteriasService                = criteriasService;
     this.schoolCandidateRepository       = schoolCandidateRepository;
     this.schoolService                   = schoolService;
     this.calculatorService               = calculatorService;
     this.claudinaryService               = claudinaryService;
     this.documentRepository              = documentRepository;
 }
 public ParentsController(IParentsService parentService)
 {
     _parentssService = parentService;
 }
 public ParentsController(IParentsService service)
 {
     this.service = service;
 }
 public StudentsController(IStudentsService studentsService, IParentsService ps, ISubjectsService subservice)
 {
     this.studentsService = studentsService;
     this.parentsService  = ps;
     this.subjectsService = subservice;
 }
示例#17
0
 public ParentsController(IParentsService parentsService)
 {
     this.parentsService = parentsService;
 }
 public TeachersController(ITeachersService teachersService, ILevelsService levelsService, IGroupsService groupsService, IStudentsService studentsService, IParentsService parentsService)
     : base(groupsService, teachersService, studentsService, parentsService)
 {
     this.levelsService = levelsService;
 }
示例#19
0
 public ParentController(IParentsService db)
 {
     this.db = db;
 }
示例#20
0
 public ParentsController(IParentsService parentsService, IStudentsService studentsService)
 {
     this.parentsService  = parentsService;
     this.studentsService = studentsService;
 }
 public StudentsController(IStudentsService studentsService, ITeachersService teachersService, IParentsService parentsService, IGroupsService groupsService)
     : base(groupsService, teachersService, studentsService, parentsService)
 {
 }
示例#22
0
 public StudentsService(IUnitOfWork db, IDepartmentsService departmentsService, IParentsService parentsService)
 {
     this.db = db;
     this.departmentsService = departmentsService;
     this.parentsService     = parentsService;
 }
示例#23
0
 public ParentsController(IParentsService parentsService, ParentToParentDTO toDTO)
 {
     this.parentsService = parentsService;
     this.toDTO          = toDTO;
 }