/// <summary> /// Main Method /// </summary> public static void Main() { School tmt = new School("TMT"); Course electricalEngeneering = new Course("Electrical Enceneering"); for (int i = 0; i < 10; i++) { electricalEngeneering.JoinCourse(new Student(string.Format("Student{0}", i), tmt.GetStugentId)); } tmt.AddCourse(electricalEngeneering); ConsolePrinter(tmt.ToString()); foreach (var course in tmt.ViewCourses()) { ConsolePrinter(course.ToString(), 3); foreach (var student in course.ViewStudents()) { ConsolePrinter(student.Value.ToString(), 6); } } }