public BaseController() { this.userService = new UserService(); this.cloudinaryService = new CloudinaryService("onlinesystemtesting", "198959495156847", "xaESFiOp5pYOqH4EbQOs_dhnaiY"); this.courseService = new CourseService(); this.studentService = new StudentService(); this.postService = new PostService(); this.requestToJoinService = new RequestToJoinService(); this.cloudFilesService = new CloudFileService(); this.courseImageService = new CourseImageService(); this.videoService = new VideoService(); this.topicService = new TopicService(); this.closeQuestionService = new CloseQuestionService(); this.imageService = new ImageService(); this.closeAnswerService = new CloseAnswerService(); this.openQuestionService = new OpenQuestionService(); this.automaticTestService = new AutomaticTestService(); this.manualTestService = new ManualTestService(); this.testService = new TestService(); this.solvedAutomaticTestService = new SolvedAutomaticTestService(); this.solvedCloseQuestionService = new SolvedCloseQuestionService(); this.autoTestForSolvingService = new AutomaticTestForSolvingService(); this.markService = new MarkService(); this.manualTestForSolvingService = new ManualTestForSolvingService(); this.solvedManualTestService = new SolvedManualTestService(); this.solvedOpenQuestionService = new SolvedOpenQuestionService(); this.alphabetFunctions = new AlphabetFuncions(); this.studentCompletedCoursesService = new StudentCompletedCourseService(); this.importQuestionService = new ImportQuestionService(); this.exportTestService = new ExportTestService(); this.notificationService = new NotificationService(); this.courseLevelService = new CourseLevelService(); this.levelTestForSolvingService = new LevelTestForSolvingService(); this.solvedManualTestForLevelService = new SolvedManualTestForLevelService(); this.convertResource = new ConvertResource(); }
public CourseService(ICourseRepository courseRepository, ICourseImageService courseImageService, ICourseContributorsRepository courseContributorsRepository) { this.courseRepository = courseRepository; this.courseImageService = courseImageService; this.courseContributorsRepository = courseContributorsRepository; }