public Student(string name, ISchool school)
 {
     this.Name         = name;
     this.UniqueNumber = school.GenerateStudentId();
     this.coursesList  = new List <ICourse>();
     school.AddStudent(this);
 }
Beispiel #2
0
        public Student(string name, ISchool school)
        {
            Validator.NullCheck(school, "School");

            this.Id      = school.GenerateStudentId();
            this.courses = new List <ICourse>();
            this.Name    = name;
            school.AddStudent(this);
        }