Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TestsController"/> class.
 /// </summary>
 public TestsController(
     IOjsData data,
     IProblemsDataService problemsData,
     ISubmissionsDataService submissionsData,
     ITestRunsDataService testRunsData,
     ITestsDataService testsData,
     IProblemsBusinessService problemsBusiness,
     ISubmissionsBusinessService submissionsBusiness)
     : base(data)
 {
     this.problemsData        = problemsData;
     this.submissionsData     = submissionsData;
     this.testRunsData        = testRunsData;
     this.testsData           = testsData;
     this.problemsBusiness    = problemsBusiness;
     this.submissionsBusiness = submissionsBusiness;
 }
 public ProblemsController(
     IOjsData data,
     IContestsDataService contestsData,
     ICheckersDataService checkersData,
     IProblemsDataService problemsData,
     IProblemGroupsDataService problemGroupsData,
     IProblemResourcesDataService problemResourcesData,
     ISubmissionsDataService submissionsData,
     ISubmissionTypesDataService submissionTypesData,
     IProblemsBusinessService problemsBusiness)
     : base(data)
 {
     this.contestsData         = contestsData;
     this.checkersData         = checkersData;
     this.problemsData         = problemsData;
     this.problemGroupsData    = problemGroupsData;
     this.problemResourcesData = problemResourcesData;
     this.submissionsData      = submissionsData;
     this.submissionTypesData  = submissionTypesData;
     this.problemsBusiness     = problemsBusiness;
 }