Beispiel #1
0
        public void LeaveStudentFromCourse(Student student, Course course)
        {
            if (student == null)
            {
                throw new ArgumentNullException("student cannot be null");
            }

            if (course == null)
            {
                throw new ArgumentNullException("course cannot be null");
            }
            course.Leave(student);
        }
Beispiel #2
0
        public void LeaveStudentFromCourse(Student student, Course course)
        {
            if (student == null)
            {
                throw new ArgumentNullException("student cannot be null");
            }

            if (course == null)
            {
                throw new ArgumentNullException("course cannot be null");
            }
            course.Leave(student);
        }