Пример #1
0
 //Constructor injection
 public Students(IStudentService studentService,Student student)
 {
     _studentService = studentService;
     _student = student;
     InitializeComponent();
     dgvAllStudents.AutoGenerateColumns = false;
 }
Пример #2
0
        public StudentsController(IStudentService StudentsService, ILookupService lookupService,
            IStudentsParentService StudentsParentService, IStudentsMedicalService StudentsMedicalService,
            IStudentsTransportService StudentsTransportService, IStudentsDocsService StudentsDocsService,
            IAcademicYearService AcademicYearService, IClassService ClassService,
            ISectionService SectionService, IBatchService BatchService, IAreaService AreaService,
            IStudentsAttendanceService StudentsAttendanceService, IStudentsClassService StudentsClassService)
            : base()
        {
            this._StudentService = StudentsService;
            this._StudentsParentService = StudentsParentService;
            this._StudentsMedicalService = StudentsMedicalService;
            this._StudentsTransportService = StudentsTransportService;
            this._StudentsDocsService = StudentsDocsService;
            this._StudentsClassService = StudentsClassService;

            this._AcademicYearService = AcademicYearService;
            this._ClassService = ClassService;
            this._SectionService = SectionService;
            this._BatchService = BatchService;
            this._AreaService = AreaService;

            this._lookupService = lookupService;

            this._StudentsAttendanceService = StudentsAttendanceService;
        }
Пример #3
0
 public BookRoomController(IBuildingService buildings, IFloorService floors, IRoomService rooms, IStudentService students)
 {
     this.buildings = buildings;
     this.floors = floors;
     this.rooms = rooms;
     this.students = students;
 }
Пример #4
0
 public HomeController(IStudentService StudentsService, ILookupService lookupService, ISchoolService SchoolService)
     : base()
 {
     this._StudentService = StudentsService;
     this._lookupService = lookupService;
     this._schoolService = SchoolService;
 }
Пример #5
0
        public StudentServiceTest()
        {
            var container = new UnityContainer();
            container.RegisterType<IDbContext, SchoolDbContext>();
            container.RegisterType<IUnitOfWork, UnitOfWork>();
            container.RegisterType<IStudentRepository, StudentRepository>();
            container.RegisterType<ITeacherRepository, TeacherRepository>();
            container.RegisterType<IStudentService, StudentService>();

            _studentService = container.Resolve<IStudentService>();
        }
Пример #6
0
        public StudentServiceTest()
        {
            var container = new UnityContainer();
            container.RegisterType<IDbContext, SchoolDbContext>();//要进行LifetimeManager配置
            container.RegisterType<IUnitOfWork, UnitOfWork>();
            container.RegisterType<IStudentRepository, StudentRepository>();
            container.RegisterType<ITeacherRepository, TeacherRepository>();
            container.RegisterType<IStudentService, StudentService>();

            _studentService = container.Resolve<IStudentService>();

            //DDD.Sample.BootStrapper.Startup.Configure(); 上面ioc注入可以放在Configure中
        }
Пример #7
0
        public ComplaintController(IComplaintService ComplaintService, ILookupService lookupService,
            IAcademicYearService AcademicYearService, IClassService ClassService,
            ISectionService SectionService, IStudentService StudentService)
            : base()
        {
            this._ComplaintService = ComplaintService;
            this._lookupService = lookupService;

            this._AcademicYearService = AcademicYearService;
            this._ClassService = ClassService;
            this._SectionService = SectionService;
            this._StudentService = StudentService;
        }
Пример #8
0
 public AdminController(IRepositoryWithTypedId<Student, Guid> studentRepository, IRepositoryWithTypedId<MajorCode, string> majorRepository, IStudentService studentService, IEmailService emailService, IMajorService majorService, ICeremonyService ceremonyService, IRegistrationService registrationService, IRegistrationPopulator registrationPopulator, IRepository<Registration> registrationRepository, IErrorService errorService, IReportService reportService)
 {
     if (emailService == null) throw new ArgumentNullException("emailService");
     _studentRepository = studentRepository;
     _majorRepository = majorRepository;
     _studentService = studentService;
     _emailService = emailService;
     _majorService = majorService;
     _ceremonyService = ceremonyService;
     _registrationService = registrationService;
     _registrationPopulator = registrationPopulator;
     _registrationRepository = registrationRepository;
     _errorService = errorService;
     _reportService = reportService;
 }
Пример #9
0
 public ApiController(
     IAnswerService answerService, 
     IExerciseService exerciseService, 
     IObjectiveService objectiveService, 
     IStudentService studentService,
     IStudentAnswerService studentAnswerService,
     IStudentDeviationsService studentDeviationService)
 {
     _answerService = answerService;
     _exerciseService = exerciseService;
     _objectiveService = objectiveService;
     _studentService = studentService;
     _studentAnswerService = studentAnswerService;
     _studentDeviationService = studentDeviationService;
 }
 public FeeConcessionController(IFeeConcessionService FeeConcessionService, ILookupService lookupService,
     IAcademicYearService AcademicYearService, IClassService ClassService,
     ISectionService SectionService, IBatchService BatchService, IFeeHeadService FeeHeadService,
     IStudentService StudentService, IFeeStructureService FeeStructureService)
     : base()
 {
     this._FeeConcessionService = FeeConcessionService;
     this._lookupService = lookupService;
     this._AcademicYearService = AcademicYearService;
     this._ClassService = ClassService;
     this._SectionService = SectionService;
     this._BatchService = BatchService;
     this._FeeHeadService = FeeHeadService;
     this._StudentService = StudentService;
     this._feeStructureService = FeeStructureService;
 }
Пример #11
0
 public FeeReceiptController(IFeeReceiptService FeeReceiptService, ILookupService lookupService,
     IAcademicYearService AcademicYearService, IClassService ClassService,
     ISectionService SectionService, IBatchService BatchService, IFeeHeadService FeeHeadService,
     IStudentService StudentService, IFeeStructureService FeeStructureService,
     IFeeHeadOptionalEntryService FeeHeadOptionalEntryService, ISchoolService SchoolService)
     : base()
 {
     this._FeeReceiptService = FeeReceiptService;
     this._lookupService = lookupService;
     this._AcademicYearService = AcademicYearService;
     this._ClassService = ClassService;
     this._SectionService = SectionService;
     this._BatchService = BatchService;
     this._FeeHeadService = FeeHeadService;
     this._StudentService = StudentService;
     this._feeStructureService = FeeStructureService;
     this._FeeHeadOptionalEntryService = FeeHeadOptionalEntryService;
     this._SchoolService = SchoolService;
 }
Пример #12
0
 public StudentController(IStudentService studentService, 
     IEmailService emailService,
     IRepositoryWithTypedId<Student, Guid> studentRepository,
     IRepository<Ceremony> ceremonyRepository,
     IRepository<Registration> registrationRepository,
     IErrorService errorService,
     ICeremonyService ceremonyService,
     IReportService reportService,
     IRepository<RegistrationPetition> registrationPetitionRepository,
     IRepository<RegistrationParticipation> participationRepository, IRegistrationPopulator registrationPopulator)
 {
     _studentRepository = studentRepository;
     _ceremonyRepository = ceremonyRepository;
     _registrationRepository = registrationRepository;
     _errorService = errorService;
     _ceremonyService = ceremonyService;
     _reportService = reportService;
     _registrationPetitionRepository = registrationPetitionRepository;
     _participationRepository = participationRepository;
     _registrationPopulator = registrationPopulator;
     _studentService = studentService;
     _emailService = emailService;
 }
Пример #13
0
 public StudentController(IStudentService studentService, IPerformanceService performanceService)
 {
     _studentService     = studentService;
     _performanceService = performanceService;
 }
Пример #14
0
 public StudentController(IStudentService studentService)
 {
     this._studentService = studentService;
 }
Пример #15
0
 public StudentsController(IStudentService studentService,
                           IMapper mapper)
 {
     _studentService = studentService;
     _mapper         = mapper;
 }
Пример #16
0
 public StudentsGridViewPresenter(IUniversityLocalContext universityLocalContext, IStudentService studentService)
 {
     this.universityLocalContext = universityLocalContext;
     this.studentService         = studentService;
 }
Пример #17
0
 public UserController(IUserService userService, ITeacherService teacherService, IStudentService studentService)
 {
     _studentService = studentService;
     _teacherService = teacherService;
     _userService    = userService;
 }
Пример #18
0
 //Constructor Injection
 public Admissions(IStudentService studentService ,Student _student)
 {
     _studentService = studentService;
     student = _student;
     InitializeComponent();
 }
 public HomeController(IStudentService studentService, IProjectService projectService)
 {
     _studentService = studentService;
     _projectService = projectService;
 }
 public StudentBaseController()
 {
     _studentService = UnityConfig.Container.Resolve <IStudentService>();
 }
 public StudentBaseController(IStudentService studentService)
 {
     _studentService = studentService;
 }
 public StudentBaseDataController(IStudentService studentService)
 {
     this.studentService = studentService;
 }
Пример #23
0
 public StudentController(ICourseService courseService, ISpecialtyService specialtyService, IGroupService groupService, IStudentService studentService, IUnitOfWorkAsync unitOfWork, IHistoryService historyService)
 {
     _courseService    = courseService;
     _specialtyService = specialtyService;
     _groupService     = groupService;
     _studentService   = studentService;
     _unitOfWork       = unitOfWork;
     _historyService   = historyService;
 }
Пример #24
0
		public AlunoController(
			IWorkContext workContext, IStudentService studentService)
		{
			_workContext = workContext;
			_studentService = studentService;
		}
Пример #25
0
 public StudentsController(IDateTimeService dateTimeService, IStudentService studentService)
 {
     _dateTimeService = dateTimeService;
     _studentService  = studentService;
 }
Пример #26
0
 public MarkController(IMarkService markService, IStudentService studentService, ISubjectService subjectService) : base()
 {
     this.markService    = markService;
     this.studentService = studentService;
     this.subjectService = subjectService;
 }
Пример #27
0
 public NetworkFacade()
 {
     proxy = channelFactory.CreateChannel();
 }
Пример #28
0
 public StudentManager(IUnitOfWork unitOfWork, IReferenceExcludable excludable, IStudentService studentService)
 {
     _excludable     = Has.NotNull(excludable);
     _studentService = Has.NotNull(studentService);
     _unitOfWork     = Has.NotNull(unitOfWork);
 }
 public void SetUp()
 {
     this.mockStudentRepository = new Mock<IBaseRepository<Student>>();
     this.studentService = new StudentService(this.mockStudentRepository.Object);
 }
Пример #30
0
 public UserController()
 {
     _svc = new StudentService();
 }
 public HomeController(IStudentService service)
 {
     this.service = service;
 }
Пример #32
0
 public AssessmentService(IAssessmentRepository assessmentRepository, IStudentService studentService)
 {
     _studentService       = studentService;
     _assessmentRepository = assessmentRepository;
 }
Пример #33
0
 public StudentController(IStudentService service)
 {
     this.studentServis = service;
 }
Пример #34
0
 /// <summary>
 /// Constructor with specified ICourseService, IMapper, ILogger
 /// </summary>
 /// <param name="studentService">Object that realize lecture service contract</param>
 /// <param name="mapper">Object that realize mapper contract</param>
 /// <param name="logger">Object that realize logger contract</param>
 public StudentController(IStudentService studentService, IMapper mapper, ILogger <StudentController> logger)
 {
     _mapper         = mapper;
     _studentService = studentService;
     _logger         = logger;
 }
Пример #35
0
        /// <summary>
        ///   Initializes a new instance of the <see cref="StudentsController" /> class.
        /// </summary>
        /// <param name="iAddStudentService"></param>

        public StudentController(IStudentService iAddStudentService)
        {
            _iStudentService = iAddStudentService;
        }
Пример #36
0
 public StudentController(IStudentService students)
 {
     this.students = students;
 }
Пример #37
0
 public StudentsController(IStudentService studensService, IMapper mapper)
 {
     this.studentService = studensService;
     this.mapper         = mapper;
 }
Пример #38
0
 public StudentController()
 {
     _service = new StudentService(this.ModelState);
 }
Пример #39
0
 public StudentController(IStudentService service)
 {
     _studentService = service;
 }
 public void SetUp()
 {
     studentDataService = MockRepository.GenerateMock<IStudentDataService>();
     studentService = new StudentService(studentDataService);
 }
Пример #41
0
 public StudentController(IStudentService ss)
 {
     _ss = ss;
 }
 public void TestStudentHasDataServiceNoArgument()
 {
     studentService = new StudentService();
 }
Пример #43
0
 public StudentsApiController(IStudentService studentService)
 {
     _studentService = studentService;
 }
Пример #44
0
 public StudentController(IStudentService service)
 {
     _service = service;
 }
 public Form1(IStudentService studentService)
 {
     InitializeComponent();
     this.studentService = studentService;
 }
Пример #46
0
 public StudentsController(IStudentService ss, IGroupService gs)
 {
     studentService = ss;
     groupService = gs;
 }
 public AcademicProgressesController(IAcademicProgressService aps, IStudentService ss, IScheduleService scs)
 {
     academicProgressService = aps;
     studentService = ss;
     scheduleService = scs;
 }
Пример #48
0
 public NetworkFacade()
 {
     proxy = channelFactory.CreateChannel();
 }
 public HomeController(IStudentService iStudentService)
 {
     _iStudentService = iStudentService;
 }
Пример #50
0
 /// <summary>
 /// Constructor
 /// </summary>
 public StudentController(IStudentService objStudent)
 {
     IObjStudent = objStudent;
 }
Пример #51
0
 public HomeController(IStudentService studentServices)
 {
     _studentServices = studentServices;
 }
Пример #52
0
 public StudentFacade(ISettingsService settingsService, IStudentService studentService)
 {
     _settingsService = settingsService;
     _studentService  = studentService;
 }
Пример #53
0
 public StudentsController()
 {
     _studentService = new StudentService();
 }
Пример #54
0
 // using dependency injection
 public CourseController(ICourseService ics, IStudentService iss)
 {
     _courseService  = ics;
     _studentService = iss;
 }
 public void TestStudentHasDataServiceWithArgument()
 {
     studentService = new StudentService(studentDataService);
 }
 public StudentSessionsController(ISessionReservationService sessionReservationService, IStudentService studentService, ISessionService sessionService, IMapper mapper)
 {
     _sessionReservationService = sessionReservationService;
     _studentService            = studentService;
     _sessionService            = sessionService;
     _mapper = mapper;
 }
Пример #57
0
 public StudentController(IStudentService studentService)
 {
     this.studentService = studentService;
 }
Пример #58
0
 public ManageController(IService <Teacher> teachService, IStudentService <Student> studService, IHash hash)
 {
     _studService  = studService;
     _teachService = teachService;
 }
 public StudentView(IStudentService studentService)
 {
     this.studentService = studentService;
 }
 public HomeController(IStudentService StudentService)
 {
     _StudentService = StudentService;
 }