Example #1
0
 private static void Main()
 {
     var firstDiscipline = new Discipline("Mathematic", 20, 3, "Some comment for math...");
     var secondDiscipline = new Discipline("Physics", 22, 4);
     var firstTeacher = new Teacher("Georgi Gerogiev", "Some comment for the teacher...");
     var secondTeacher = new Teacher("Ivan Ivanov");
     firstTeacher.AddDiscipline(firstDiscipline);
     firstTeacher.AddDiscipline(secondDiscipline);
     secondTeacher.AddDiscipline(firstDiscipline);
     secondTeacher.AddDiscipline(secondDiscipline);
     var firstStudent = new Student("Pesho Peshov", 112, "Some comment about the student...");
     var secondStudent = new Student("Gosho Goshov", 113);
     var exampleSchoolClass = new School("Some unique ID", "Some comment...");
     exampleSchoolClass.AddStudent(firstStudent);
     exampleSchoolClass.AddStudent(secondStudent);
     exampleSchoolClass.AddTeacher(firstTeacher);
     exampleSchoolClass.AddTeacher(secondTeacher);
 }