示例#1
0
        public void AddMark(IStudent student, float value)
        {
            if (student == null)
            {
                throw new ArgumentNullException(nameof(student), string.Format(Constants.NullObjectErrorMessage, "Student"));
            }

            var mark = new Mark(this.Subject, value);

            student.AddMark(mark);
        }
示例#2
0
 public void AddMark(IStudent student, IMark mark)
 {
     student.AddMark(mark);
 }
示例#3
0
        public void AddMark(IStudent student, float value)
        {
            var mark = new Mark(this.Subject, value);

            student.AddMark(mark);
        }
示例#4
0
文件: Teacher.cs 项目: shakuu/Exams
 public void AddMark(IStudent student, IMark mark)
 {
     mark.SchoolSubjectType = this.subject;
     student.AddMark(mark);
 }