示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CourseController"/> class.
        /// </summary>
        /// <param name="courseModuleService">The course module service.</param>
        ///   /// <param name="courseService">The course  service.</param>
        public CourseController(
            IStudentAppService studentService,
            ICourseModuleAppService courseModuleService,
            IUnitModuleAppService unitModuleService,
            IQuizAppService quizservice,
            IQuestionAppService questionService,
            IAnswerAppService answerService,
            IUserAppService userAppService) : base(userAppService)

        {
            this._courseModuleService = courseModuleService;
            _unitModuleService        = unitModuleService;
            _quizService     = quizservice;
            _questionService = questionService;
            _answerService   = answerService;
            _studentService  = studentService;
            _userAppService  = userAppService;
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UnitModuleAppService"/> class.
 /// </summary>
 /// <param name="unitManager">The unit manager.</param>
 /// <param name="objectMapper">The object mapper.</param>
 /// <param name="cacheService">The cache service.</param>
 /// <param name="exceptionManager">The exception manager.</param>
 /// <param name="loggingService">The logging service.</param>
 public UnitModuleAppService(
     IUnitDomainService unitManager,
     IModuleDomainService moduleManager,
     ICourseDomainService courseManager,
     IVideoDomainService videoManager,
     IFileDomainService fileManager,
     IObjectMapperAdapter objectMapper,
     ICacheAdapter cacheService,
     IExceptionManagerAdapter exceptionManager,
     ILoggingServiceAdapter loggingService,
     IQuizAppService quizAppService, ICourseModuleAppService courseModuleAppService)
     : base(objectMapper, cacheService, exceptionManager, loggingService)
 {
     this.UnitManager            = unitManager;
     this.ModuleManager          = moduleManager;
     this.CourseManager          = courseManager;
     this.VideoManager           = videoManager;
     this.FileManager            = fileManager;
     this._quizAppService        = quizAppService;
     this.CourseModuleAppService = courseModuleAppService;
 }
示例#3
0
 public QuizzesController(IQuizAppService quizAppService)
 {
     _quizAppService = quizAppService;
 }