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