public ApiController( AntiPlagiarismDb db, ISubmissionsRepo submissionsRepo, ISnippetsRepo snippetsRepo, ITasksRepo tasksRepo, IClientsRepo clientsRepo, IWorkQueueRepo workQueueRepo, IMostSimilarSubmissionsRepo mostSimilarSubmissionsRepo, IManualSuspicionLevelsRepo manualSuspicionLevelsRepo, PlagiarismDetector plagiarismDetector, CodeUnitsExtractor codeUnitsExtractor, IServiceScopeFactory serviceScopeFactory, NewSubmissionHandler newSubmissionHandler, IOptions <AntiPlagiarismConfiguration> configuration) : base(clientsRepo, db) { this.submissionsRepo = submissionsRepo; this.snippetsRepo = snippetsRepo; this.tasksRepo = tasksRepo; this.workQueueRepo = workQueueRepo; this.mostSimilarSubmissionsRepo = mostSimilarSubmissionsRepo; this.manualSuspicionLevelsRepo = manualSuspicionLevelsRepo; this.plagiarismDetector = plagiarismDetector; this.codeUnitsExtractor = codeUnitsExtractor; this.newSubmissionHandler = newSubmissionHandler; this.serviceScopeFactory = serviceScopeFactory; this.configuration = configuration.Value; }
public UserSolutionsRepo(UlearnDb db, ITextsRepo textsRepo, IWorkQueueRepo workQueueRepo, IWebCourseManager courseManager) { this.db = db; this.textsRepo = textsRepo; this.workQueueRepo = workQueueRepo; this.courseManager = courseManager; }
public NewSubmissionHandler( ISubmissionsRepo submissionsRepo, ISnippetsRepo snippetsRepo, ITasksRepo tasksRepo, IWorkQueueRepo workQueueRepo, SubmissionSnippetsExtractor submissionSnippetsExtractor, IServiceScopeFactory serviceScopeFactory, IOptions <AntiPlagiarismConfiguration> configuration) { this.submissionsRepo = submissionsRepo; this.snippetsRepo = snippetsRepo; this.tasksRepo = tasksRepo; this.workQueueRepo = workQueueRepo; this.submissionSnippetsExtractor = submissionSnippetsExtractor; this.serviceScopeFactory = serviceScopeFactory; this.configuration = configuration.Value; }