Exemple #1
0
 /// <summary>
 /// create new grade
 /// </summary>
 /// <param name="percentualValue">value of the grade in double format 0 -> 0%, 1-> 100%</param>
 /// <param name="comment">comment to the grade</param>
 /// <param name="topic">topic of the grade</param>
 /// <param name="weight">weight of the grade</param>
 /// <param name="student">student that this grade belongs to</param>
 public Grade(double percentualValue, string comment, string topic, int weight, CourseMember student)
 {
     PercentualValue = percentualValue;
     Comment         = comment;
     Topic           = topic;
     Weight          = weight;
     Student         = student;
 }
Exemple #2
0
 /// <summary>
 /// create new test submission
 /// </summary>
 /// <param name="test">test that this submission belongs to</param>
 /// <param name="student">student that this submission belongs to</param>
 /// <param name="submittedAnswers">colleciton of submitted answers</param>
 public TestSubmission(CourseTest test, CourseMember student, ICollection <TestSubmissionAnswer> submittedAnswers)
 {
     Test        = test;
     Student     = student;
     Answers     = submittedAnswers;
     IsReviewed  = false;
     IsSubmitted = false;
 }