Esempio n. 1
0
 public HomeController(IUnitOfWork uow, ISubjectService subjectService, IProductCategoryService categoryService, IChapterService chapterService, IGalleryService galleryService)
 {
     _uow = uow;
     _subjectService = subjectService;
     _productCategoryService = categoryService;
     _galleryService = galleryService;
 }
 public LoockupManagementService(ISpecialityService specialityService, ISpecializationService specializationService, IProfessorProfileService professorProfileService, IGroupService groupService, ISubjectService subjectService, IThemeService themeService)
 {
     this.specialityService = specialityService;
     this.specializationService = specializationService;
     this.professorProfileService = professorProfileService;
     this.groupService = groupService;
     this.subjectService = subjectService;
     this.themeService = themeService;
 }
 public ScheduleService(ILogger logger, IUnitOfWork unitOfWork, ITeacherService teacherService, ISubjectService subjectService, IGroupService groupService, ILessonDetailService lessonDetail)
     : base(logger)
 {
     this.unitOfWork = unitOfWork;
     this.teacherService = teacherService;
     this.subjectService = subjectService;
     this.groupService = groupService;
     this.lessonDetailService = lessonDetail;
 }
Esempio n. 4
0
		public MainViewModel(IAppPreferences appPreferences, IRegionService regionService, ISubjectService subjectService, IComputeService computeService, IEventAggregator eventAggregator)
		{
			_appPreferences = appPreferences;
			_regionService = regionService;
			_subjectService = subjectService;
			_computeService = computeService;
			_eventAggregator = eventAggregator;

			this.DisplayName = "REGIONS";

			Regions = new BindableCollection<RegionViewModel>();

			_eventAggregator.Subscribe(this);
		}
 public SubjectController(ISubjectService subjectService, IPerformanceService performanceService, ISubjectInfoService subjectInfoService)
 {
     _subjectService     = subjectService;
     _performanceService = performanceService;
     _subjectInfoService = subjectInfoService;
 }
Esempio n. 6
0
 public TeacherSubjectController(ITeacherSubjectService teacherSubjectService, ITeacherService teacherService, ISubjectService subjectService)
 {
     this.teacherSubjectService = teacherSubjectService;
     this.teacherService        = teacherService;
     this.subjectService        = subjectService;
 }
 public SpeakerController(ISpeakerService speakerService, ISubjectService subjectService, UserManager <IdentityUser> userManager)
 {
     _speakerService = speakerService;
     _subjectService = subjectService;
     _userManager    = userManager;
 }
 public EntryExaminationController(ITiMuService tiMuService, IBookWorkTaskService bookWorkTaskService, ISubjectService subjectService, IBookChapterService bookChapterService, IQuestionService questionService, IWorkContext workContext, IBookWorkTaskItemService bookWorkTaskItemService, IKnowledgeService knowledgeService)
 {
     _tiMuService             = tiMuService;
     _bookWorkTaskService     = bookWorkTaskService;
     _subjectService          = subjectService;
     _bookChapterService      = bookChapterService;
     _questionService         = questionService;
     _workContext             = workContext;
     _bookWorkTaskItemService = bookWorkTaskItemService;
     _knowledgeService        = knowledgeService;
 }
        public RegistrationMutation(IAddressService addressService, ICourseService courseService, IStudentService studentService, ISubjectService subjectService)
        {
            FieldAsync <AddressType>
            (
                "AddAddress",
                arguments: new QueryArguments
                (
                    new QueryArgument <NonNullGraphType <AddressInputType> > {
                Name = "address"
            }
                ),
                resolve: async ctx =>
            {
                var address = ctx.GetArgument <Address>("address");

                return(await addressService.Add(address));
            }
            );

            FieldAsync <AddressType>
            (
                "updateAddress",
                arguments: new QueryArguments
                (
                    new QueryArgument <NonNullGraphType <AddressInputType> > {
                Name = "address"
            },
                    new QueryArgument <NonNullGraphType <IntGraphType> > {
                Name = "addressId"
            }
                ),
                resolve: async ctx =>
            {
                var address         = ctx.GetArgument <Address>("address");
                var addressId       = ctx.GetArgument <int>("addressId");
                var existingAddress = addressService.GetById(addressId);

                if (existingAddress == null)
                {
                    return(null);
                }

                address.Id = addressId;

                return(await addressService.Update(addressId, address));
            }
            );

            FieldAsync <CourseType>
            (
                "AddCourse",
                arguments: new QueryArguments
                (
                    new QueryArgument <NonNullGraphType <CourseInputType> > {
                Name = "course"
            }
                ),
                resolve: async ctx =>
            {
                var course = ctx.GetArgument <Course>("course");

                return(await courseService.Add(course));
            }
            );

            FieldAsync <CourseType>
            (
                "updateCourse",
                arguments: new QueryArguments
                (
                    new QueryArgument <NonNullGraphType <CourseInputType> > {
                Name = "course"
            },
                    new QueryArgument <NonNullGraphType <IntGraphType> > {
                Name = "courseId"
            }
                ),
                resolve: async ctx =>
            {
                var course         = ctx.GetArgument <Course>("course");
                var courseId       = ctx.GetArgument <int>("courseId");
                var existingCourse = await courseService.GetById(courseId);

                if (existingCourse == null)
                {
                    return(null);
                }

                course.Id = courseId;

                return(await courseService.Update(courseId, course));
            }
            );

            FieldAsync <StudentType>
            (
                "addStudent",
                arguments: new QueryArguments
            {
                new QueryArgument <NonNullGraphType <StudentInputType> > {
                    Name = "student"
                }
            },
                resolve: async ctx =>
            {
                var student = ctx.GetArgument <Student>("student");

                return(await studentService.Add(student));
            }
            );

            FieldAsync <StudentType>
            (
                "updateStudent",
                arguments: new QueryArguments
                (
                    new QueryArgument <NonNullGraphType <StudentInputType> > {
                Name = "student"
            },
                    new QueryArgument <NonNullGraphType <StringGraphType> > {
                Name = "studentNumber"
            }
                ),
                resolve: async ctx =>
            {
                var student         = ctx.GetArgument <Student>("student");
                var studentNumber   = ctx.GetArgument <string>("studentNumber");
                var existingStudent = await studentService.GetByStudentNumber(studentNumber);

                if (existingStudent == null)
                {
                    return(null);
                }

                student.StudentNumber = studentNumber;

                return(await studentService.Update(studentNumber, student));
            }
            );

            FieldAsync <SubjectType>
            (
                "addSubject",
                arguments: new QueryArguments
            {
                new QueryArgument <NonNullGraphType <SubjectInputType> > {
                    Name = "subject"
                }
            },
                resolve: async ctx =>
            {
                var subject = ctx.GetArgument <Subject>("subject");

                return(await subjectService.Add(subject));
            }
            );

            FieldAsync <SubjectType>
            (
                "updateSubject",
                arguments: new QueryArguments
                (
                    new QueryArgument <NonNullGraphType <SubjectInputType> > {
                Name = "subject"
            },
                    new QueryArgument <NonNullGraphType <IntGraphType> > {
                Name = "subjectId"
            }
                ),
                resolve: async ctx =>
            {
                var subject         = ctx.GetArgument <Subject>("subject");
                var subjectId       = ctx.GetArgument <int>("subjectId");
                var existingSubject = subjectService.GetById(subjectId);

                if (existingSubject == null)
                {
                    return(null);
                }

                subject.Id = subjectId;

                return(await subjectService.Update(subjectId, subject));
            }
            );
        }
Esempio n. 10
0
 public TeacherController(ITeacherService teacherService, IUserService userService, ISubjectService subjectService)
 {
     this.teacherService = teacherService;
     this.userService    = userService;
     this.subjectService = subjectService;
 }
 public SubjectsController(ISubjectService subjectService)
 {
     this.subjectService = subjectService;
 }
Esempio n. 12
0
 public LessonService(IRepository <Lesson> repository, ISubjectService subjectService) : base(repository)
 {
     SubjectService = subjectService;
 }
Esempio n. 13
0
 public SubjectsController(ISubjectService SubjectsService)
 {
     _SubjectsService = SubjectsService;
 }
Esempio n. 14
0
 public ProgressionController(IProgressionService progression, ISubjectService subjects, IConceptService concepts)
 {
     _progression = progression;
     _subjects    = subjects;
     _concepts    = concepts;
 }
Esempio n. 15
0
 public SubjectController(ISubjectService SubjectService, ILookupService lookupService)
     : base()
 {
     this._SubjectService = SubjectService;
     this._lookupService = lookupService;
 }
 public SubjectsController(ILogger logger, ISubjectService subjects, IScheduleService schedule)
     : base(logger)
 {
     this.subjectService = subjects;
     this.scheduleServise = schedule;
 }
 public ClassesController(ISubjectService subjectService)
 {
     _subjectService = subjectService;
 }
 public SubjectsController(ISubjectService subjectService)
 {
     //_context = context;
     _subjectService = subjectService;
 }
Esempio n. 19
0
 public StudentController(IAuthentication authentication, ISubjectService subjectService)
 {
     _authentication = authentication;
     _subjectService = subjectService;
 }
Esempio n. 20
0
 public SubjectController(ISubjectService subjectService)
 {
     _subjectService = subjectService;
 }
 public SubjectsController(ISubjectService subjectService, IMapper mapper)
 {
     this.subjectService = subjectService;
     this.mapper         = mapper;
 }
 public SubjectManagementService(ISubjectService subjectService, IEUniversityUow universityUow)
 {
     this.subjectService = subjectService;
     this.universityUow = universityUow;
 }
Esempio n. 23
0
 public ProjectController(IProjectService projectService, ISubjectService subjectService, IMapper mapper)
 {
     _projectService = projectService;
     _subjectService = subjectService;
     _mapper         = mapper;
 }
Esempio n. 24
0
        public LiveTilesViewModel(IEventAggregator eventAggregator, IComputeService computeService, IRegionService regionService, ISubjectService subjectService)
        {
            _eventAggregator = eventAggregator;
            _computeService  = computeService;
            _regionService   = regionService;
            _subjectService  = subjectService;

            Permutations = _appPreferences.Permutations;

            Groups = "None";
            PermutationsComplete = 0;

            _eventAggregator.Subscribe(this);
        }
Esempio n. 25
0
 public SubjectServiceTests()
 {
     this.doctorRepositoryMock = new Mock <IDoctorRepository>();
     this.sut = new SubjectService(this.doctorRepositoryMock.Object);
 }
Esempio n. 26
0
 public GetSubjectModel()
 {
     _subjectService = Startup.AutofacContainer.Resolve <ISubjectService>();
 }
Esempio n. 27
0
 public GradesController(IGradeService gradeService, ISubjectService subjectService, IClassNumberService classNumberService)
 {
     this.gradeService       = gradeService;
     this.subjectService     = subjectService;
     this.classNumberService = classNumberService;
 }
Esempio n. 28
0
 public ProfileController(IProfileService profileService, ISubjectService subjectService)
 {
     _profileService = profileService;
     _subjectService = subjectService;
 }
Esempio n. 29
0
 public BatchController(IClassService classService, ILogger logger, IRepository repository, IBatchService batchService, ISubjectService subjectService,
                        IStudentService studentService, IAspNetRoles aspNetRolesService)
 {
     _classService       = classService;
     _logger             = logger;
     _repository         = repository;
     _batchService       = batchService;
     _subjectService     = subjectService;
     _studentService     = studentService;
     _aspNetRolesService = aspNetRolesService;
 }
Esempio n. 30
0
 public MarkController(IMarkService markService, IStudentService studentService, ISubjectService subjectService) : base()
 {
     this.markService    = markService;
     this.studentService = studentService;
     this.subjectService = subjectService;
 }
Esempio n. 31
0
 public UserExamController(IConfiguration config, IUserExamService userExamService, IUserService userService, ISubjectService subjectService)
 {
     this.userExamService = userExamService;
     this.userService     = userService;
     this.subjectService  = subjectService;
     this.config          = config;
 }
Esempio n. 32
0
 // constructor
 public SubjectsController(IMapper mapper, ISubjectService subjectService)
 {
     _mapper         = mapper;
     _subjectService = subjectService;
 }
Esempio n. 33
0
        public SubjectController(IDatabaseWorker databaseWorker, IAuthentication authentication, ISubjectService subjectService, ITaskService taskService)
        {
            _databaseWorker = databaseWorker;
            _authentication = authentication;
            _subjectService = subjectService;
            _taskService    = taskService;

            Console.WriteLine(" SUBJECT CONTROLLER CONSTRUCTOR ");
        }
Esempio n. 34
0
 public SubjectAppService(ISubjectService service)
 {
     _service = service;
 }
Esempio n. 35
0
 public CurriculumController(ISubjectService subjectService)
 {
     _subjectService = subjectService;
 }
 public SubjectController()
 {
     _subjectService = new SubjectService();
 }
Esempio n. 37
0
 public ComputeService(ISubjectService subjectService, IRegionService regionService, IEventAggregator eventAggregator)
 {
     _subjectService = subjectService;
     _regionService = regionService;
     _eventAggregator = eventAggregator;
 }
 public SubjectController(ISubjectService service, IMapper mapper, ILogger <SubjectController> logger)
 {
     _service = service ?? throw new ArgumentNullException(nameof(service));
     _mapper  = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _logger  = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Esempio n. 39
0
 public SubjectController(ISubjectService subjectService, IMappingEngine mappingEngine)
 {
     _subjectService = subjectService;
     _mappingEngine = mappingEngine;
 }
Esempio n. 40
0
 public TeacherService(ILogger logger, IUnitOfWork teacherUnitOfWork,ISubjectService subjectService)
     : base(logger)
 {
     this.unitOfWork = teacherUnitOfWork;
     this.subjectService = subjectService;
 }
 public ContentsController(IUnitOfWork ouw, ISubjectService subjectService, IChapterService chapterService)
 {
     _uow = ouw;
     _subjectService = subjectService;
     _chapterService = chapterService;
 }
Esempio n. 42
0
 public SubjectsController(ISubjectService subjectService)
 {
     this.subjectService = subjectService;
 }
Esempio n. 43
0
 public SubjectController(ISubjectService subjectService) : base()
 {
     this.subjectService = subjectService;
 }