public TestsController(
     IOjsData data,
     ITestsDataService testsData,
     IParticipantsDataService participantsData,
     ISubmissionsDataService submissionsData)
     : base(data)
 {
     this.testsData        = testsData;
     this.participantsData = participantsData;
     this.submissionsData  = submissionsData;
 }
Beispiel #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");
            }
        }
Beispiel #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;
 }