예제 #1
0
파일: Course.cs 프로젝트: Risorm/QPC
        public Course(string courseName, string teacherName, List <Student> courseStudents)
        {
            Validation.ValidateName(courseName);
            Validation.ValidateName(teacherName);

            this.CourseName     = courseName;
            this.TeacherName    = teacherName;
            this.CourseStudents = courseStudents;
        }
예제 #2
0
파일: Student.cs 프로젝트: Risorm/QPC
 public Student(string name)
 {
     Validation.ValidateName(name);
     this.StudentName = name;
 }