Ejemplo n.º 1
0
Archivo: Course.cs Proyecto: 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;
        }
Ejemplo n.º 2
0
 public Student(string name)
 {
     Validation.ValidateName(name);
     this.StudentName = name;
 }