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); }
public void AddMark(IStudent student, IMark mark) { student.AddMark(mark); }
public void AddMark(IStudent student, float value) { var mark = new Mark(this.Subject, value); student.AddMark(mark); }
public void AddMark(IStudent student, IMark mark) { mark.SchoolSubjectType = this.subject; student.AddMark(mark); }