public TestsController(
     IOjsData data,
     ITestsDataService testsData,
     IParticipantsDataService participantsData,
     ISubmissionsDataService submissionsData)
     : base(data)
 {
     this.testsData        = testsData;
     this.participantsData = participantsData;
     this.submissionsData  = submissionsData;
 }
예제 #2
0
        public static void Init(bool isMock)
        {
            if (isMock)
            {
                Tests = new Mock.MockTestsDataObject();

                Profile = new Mock.MockProfileDataService();

                Points = new Mock.MockPointsDataService();
            }
            else
            {
                throw new NotImplementedException("Online Data Services not implemented");
            }
        }
예제 #3
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;
 }