Ejemplo n.º 1
0
        public void JoinStudentInCourse(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.Join(student);
        }
Ejemplo n.º 2
0
        public void JoinStudentInCourse(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.Join(student);
        }