Esempio n. 1
0
 public void GradeSubmissions()
 {
     Logger.Log("Grading all submissions...");
     for (int i = 0, c = _roster.Submissions.Count; i < c; i++)
     {
         var sub = _roster.Submissions[i];
         Logger.Log($"Grading {sub.SubmissionID} ({i + 1} of {c})");
         if (sub.Submitted)
         {
             Evaluater.Grade(sub);
         }
     }
 }
Esempio n. 2
0
        private static void Main()
        {
            Serializer.InitializeDirectories();

            var cfg = new Configuration("config.json");

            var grader = new AutoGrader(cfg);

            grader.PrepareRoster();
            grader.PrepareSubmissions();
            grader.GradeSubmissions();

            Evaluater.PrintGradeCounts();
            Evaluater.PrintInvalidCounts();

            Logger.Log("Time to upload doot doot m**********r.");
            Console.Read();
            grader.UploadSubmissions();

            Logger.Log("Finished.");
            Console.Read();
        }