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; }
/**/ /* * NAME: * ProjectActivity - constructor for the ProjectActivity class * SYNOPSIS: * ProjectActivity(ITasksRepo tasksRepo, IAppUsersRepo usersRepo, IProjectsRepo projectsRepo, ITaskTypesRepo taskTypesRepo) * tasksRepo --> the ProjectManager application tasks repository that is injected as a dependency injection * usersRepo --> the ProjectManager application users repository that is injected as a dependency injection * projectsRepo --> the ProjectManager application projects repository that is injected as a dependency injection * taskTypesRepo --> the ProjectManager application taskTypes repository that is injected as a dependency injection * DESCRIPTION: * Initializes the ProjectActivity class * RETURNS * AUTHOR * Biplab Thapa Magar * DATE * 10/04/2020 * / * /**/ public ProjectActivity(ITasksRepo tasksRepo, IAppUsersRepo usersRepo, IProjectsRepo projectsRepo, ITaskTypesRepo taskTypesRepo) { _tasksRepo = tasksRepo; _usersRepo = usersRepo; _projectsRepo = projectsRepo; _taskTypesRepo = taskTypesRepo; }
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; }
public TasksController ( ITasksRepo tasksRepo, ITaskListsRepo taskListsRepo, ITagsRepo tagsRepo, ITaskTagsRepo taskTagsRepo, IMapper mapper, ILogger <TasksController> logger ) { _tasksRepo = tasksRepo; _taskListsRepo = taskListsRepo; _tagsRepo = tagsRepo; _taskTagsRepo = taskTagsRepo; _mapper = mapper; _logger = logger; }
public ApiController( ISubmissionsRepo submissionsRepo, ISnippetsRepo snippetsRepo, ITasksRepo tasksRepo, StatisticsParametersFinder statisticsParametersFinder, PlagiarismDetector plagiarismDetector, CodeUnitsExtractor codeUnitsExtractor, ILogger logger, IOptions <AntiPlagiarismConfiguration> configuration) : base(logger) { this.submissionsRepo = submissionsRepo; this.snippetsRepo = snippetsRepo; this.tasksRepo = tasksRepo; this.statisticsParametersFinder = statisticsParametersFinder; this.plagiarismDetector = plagiarismDetector; this.codeUnitsExtractor = codeUnitsExtractor; this.configuration = configuration.Value; }
/**/ /* * NAME: * ProjectsController - constructor for the ProjectsController class * SYNOPSIS: * ProjectsController(IAppUsersRepo usersRepo, IProjectsRepo projectsRepo, ITasksRepo tasksRepo, ITaskTypesRepo * UserManager userManager, ProjectActivity projectActivity) * usersRepo --> the ProjectManager application users repository that is injected as a dependency injection * projectsRepo --> the ProjectManager application projects repository that is injected as a dependency injection * tasksRepo --> the ProjectManager application tasks repository that is injected as a dependency injection * taskTypesRepo --> the ProjectManager application task types repository that is injected as a dependency injection * userManager --> an instance of the UserManager class, which is a class provided by Asp.Net Core Identity to handle * use registration and retrieval * validation --> an instance of the ProjectMemberValidation class that is injected as a dependency injection * projectActivity --> an instance of the ProjectActivity class that is injected as a dependency injection * DESCRIPTION: * Initializes the ProjectsController class * RETURNS * AUTHOR * Biplab Thapa Magar * DATE * 10/06/2020 * / * /**/ public ProjectsController( IProjectsRepo projectsRepo, IAppUsersRepo usersRepo, ITaskTypesRepo taskTypesRepo, ITasksRepo tasksRepo, UserManager <AppUser> userManager, ProjectMemberValidation validation, ProjectActivity projectActivity ) { _projectsRepo = projectsRepo; _usersRepo = usersRepo; _taskTypesRepo = taskTypesRepo; _tasksRepo = tasksRepo; _userManager = userManager; _validation = validation; _projectActivity = projectActivity; }
public ApiController( AntiPlagiarismDb db, ISubmissionsRepo submissionsRepo, ISnippetsRepo snippetsRepo, ITasksRepo tasksRepo, IClientsRepo clientsRepo, StatisticsParametersFinder statisticsParametersFinder, PlagiarismDetector plagiarismDetector, CodeUnitsExtractor codeUnitsExtractor, SubmissionSnippetsExtractor submissionSnippetsExtractor, ILogger logger, IServiceScopeFactory serviceScopeFactory, IOptions <AntiPlagiarismConfiguration> configuration) : base(logger, clientsRepo, db) { this.submissionsRepo = submissionsRepo; this.snippetsRepo = snippetsRepo; this.tasksRepo = tasksRepo; this.statisticsParametersFinder = statisticsParametersFinder; this.plagiarismDetector = plagiarismDetector; this.codeUnitsExtractor = codeUnitsExtractor; this.submissionSnippetsExtractor = submissionSnippetsExtractor; this.serviceScopeFactory = serviceScopeFactory; this.configuration = configuration.Value; }