//Constructor injection public Students(IStudentService studentService,Student student) { _studentService = studentService; _student = student; InitializeComponent(); dgvAllStudents.AutoGenerateColumns = false; }
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; }
public BookRoomController(IBuildingService buildings, IFloorService floors, IRoomService rooms, IStudentService students) { this.buildings = buildings; this.floors = floors; this.rooms = rooms; this.students = students; }
public HomeController(IStudentService StudentsService, ILookupService lookupService, ISchoolService SchoolService) : base() { this._StudentService = StudentsService; this._lookupService = lookupService; this._schoolService = SchoolService; }
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>(); }
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中 }
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; }
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; }
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; }
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; }
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; }
public StudentController(IStudentService studentService, IPerformanceService performanceService) { _studentService = studentService; _performanceService = performanceService; }
public StudentController(IStudentService studentService) { this._studentService = studentService; }
public StudentsController(IStudentService studentService, IMapper mapper) { _studentService = studentService; _mapper = mapper; }
public StudentsGridViewPresenter(IUniversityLocalContext universityLocalContext, IStudentService studentService) { this.universityLocalContext = universityLocalContext; this.studentService = studentService; }
public UserController(IUserService userService, ITeacherService teacherService, IStudentService studentService) { _studentService = studentService; _teacherService = teacherService; _userService = userService; }
//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; }
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; }
public AlunoController( IWorkContext workContext, IStudentService studentService) { _workContext = workContext; _studentService = studentService; }
public StudentsController(IDateTimeService dateTimeService, IStudentService studentService) { _dateTimeService = dateTimeService; _studentService = studentService; }
public MarkController(IMarkService markService, IStudentService studentService, ISubjectService subjectService) : base() { this.markService = markService; this.studentService = studentService; this.subjectService = subjectService; }
public NetworkFacade() { proxy = channelFactory.CreateChannel(); }
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); }
public UserController() { _svc = new StudentService(); }
public HomeController(IStudentService service) { this.service = service; }
public AssessmentService(IAssessmentRepository assessmentRepository, IStudentService studentService) { _studentService = studentService; _assessmentRepository = assessmentRepository; }
public StudentController(IStudentService service) { this.studentServis = service; }
/// <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; }
/// <summary> /// Initializes a new instance of the <see cref="StudentsController" /> class. /// </summary> /// <param name="iAddStudentService"></param> public StudentController(IStudentService iAddStudentService) { _iStudentService = iAddStudentService; }
public StudentController(IStudentService students) { this.students = students; }
public StudentsController(IStudentService studensService, IMapper mapper) { this.studentService = studensService; this.mapper = mapper; }
public StudentController() { _service = new StudentService(this.ModelState); }
public StudentController(IStudentService service) { _studentService = service; }
public void SetUp() { studentDataService = MockRepository.GenerateMock<IStudentDataService>(); studentService = new StudentService(studentDataService); }
public StudentController(IStudentService ss) { _ss = ss; }
public void TestStudentHasDataServiceNoArgument() { studentService = new StudentService(); }
public StudentsApiController(IStudentService studentService) { _studentService = studentService; }
public StudentController(IStudentService service) { _service = service; }
public Form1(IStudentService studentService) { InitializeComponent(); this.studentService = studentService; }
public StudentsController(IStudentService ss, IGroupService gs) { studentService = ss; groupService = gs; }
public AcademicProgressesController(IAcademicProgressService aps, IStudentService ss, IScheduleService scs) { academicProgressService = aps; studentService = ss; scheduleService = scs; }
public HomeController(IStudentService iStudentService) { _iStudentService = iStudentService; }
/// <summary> /// Constructor /// </summary> public StudentController(IStudentService objStudent) { IObjStudent = objStudent; }
public HomeController(IStudentService studentServices) { _studentServices = studentServices; }
public StudentFacade(ISettingsService settingsService, IStudentService studentService) { _settingsService = settingsService; _studentService = studentService; }
public StudentsController() { _studentService = new StudentService(); }
// 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; }
public StudentController(IStudentService studentService) { this.studentService = studentService; }
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; }