static void Main()
        {
            School scholl = new School("MG Petar Beron");

            SchoolClass schClass = new SchoolClass("4a");
            scholl.AddSchoolClass(schClass);

            Student student = new Student("Anna Dimova", 1);
            schClass.AddStudent(student);
            student = new Student("Biljana Asenova", 2);
            schClass.AddStudent(student);
            student = new Student("Georgi Ivanov", 3);
            schClass.AddStudent(student);
            student = new Student("Emil Stojanov", 4);
            schClass.AddStudent(student);

            Teacher teacherMath = new Teacher("Radka Petrova");
            Discipline discipline = new Discipline("Mathematics", 5, 2);
            teacherMath.AddDiscipline(discipline);
            discipline = new Discipline("Informatics", 3, 2);
            teacherMath.AddDiscipline(discipline);

            schClass.AddTeacher(teacherMath);

            Teacher teacherChem = new Teacher("Stojanka Stojanova");
            discipline = new Discipline("Chemistry", 5, 2);
            teacherChem.AddDiscipline(discipline);

            schClass.AddTeacher(teacherChem);

            Teacher teacherEng = new Teacher("Ivo Nikolov");
            discipline = new Discipline("Englich", 3, 1);
            teacherEng.AddDiscipline(discipline);

            schClass = new SchoolClass("4b");
            scholl.AddSchoolClass(schClass);

            student = new Student("Angel Dimov", 1);
            schClass.AddStudent(student);
            student = new Student("Bojan Ivanov", 2);
            schClass.AddStudent(student);
            student = new Student("Georgi Stojanov", 3);
            schClass.AddStudent(student);
            student = new Student("Emilija Dimova", 4);
            schClass.AddStudent(student);

            schClass.AddTeacher(teacherMath);
            schClass.AddTeacher(teacherChem);
            schClass.AddTeacher(teacherEng);

            Console.WriteLine(scholl);
        }
Esempio n. 2
0
        static void Main()
        {
            var mySchool = new School("My School");
            var class1   = new SchoolClass();
            var class2   = new SchoolClass();

            mySchool.SchoolClass.Add(class1);

            //test add & remove class
            mySchool.SchoolClass.Add(class2);
            mySchool.PrintClasses();
            //mySchool.SchoolClass.Remove(class2);
            mySchool.RemoveClass("B");
            Console.WriteLine("<After the removal of class B>");
            mySchool.PrintClasses();

            //test add & remove students
            class1.AddStudent(new Student("Angel Angelov"));
            class1.AddStudent(new Student("Borislav Borisov"));
            class1.RemoveStudent("Angel Angelov");

            //test add & remove teachers
            class1.AddTeacher(new Teacher("White Death", new List <SchoolSubject> {
                new SchoolSubject("Math", 20, 30),
                new SchoolSubject("Biology", 10, 10),
                new SchoolSubject("English Literature", 20, 20)
            }));

            //test add & remove subject
            class1.AddSubject("White Death", new SchoolSubject("Rocket Science", 100, 100));
            class1.RemoveSubject("White Death", "Biology");
            class1.Comment = "My DreamClass";
            var blackDeath = new Teacher("Black Death", new List <SchoolSubject> {
                new SchoolSubject("Chemistry", 20, 30),
                new SchoolSubject("Physics", 10, 10)
            });

            class1.ClassTeachers.Add(blackDeath);
            blackDeath.SetOfSubjects.Add(new SchoolSubject("Student Executions", 1, 1));
            blackDeath.Comment = "My DreamTeacher";
            var aStudent = new Student("Gargamel Petrov");

            aStudent.Comment = "complete idiot";
            class1.AddStudent(aStudent);
            //Console.WriteLine(class1);
            Console.WriteLine("Print the contents of my school:");
            Console.WriteLine(mySchool);
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            SchoolClass a      = new SchoolClass("a");
            SchoolClass b      = new SchoolClass("b");
            SchoolClass v      = new SchoolClass("v");
            SchoolClass g      = new SchoolClass("g");
            School      school = new School("MG");

            school.AddSchoolClass(a, b, v, g);
            school.DeleteSchoolClass("a");
            School.PrintAllClasses(school);
            Teacher teacher1 = new Teacher("Gogo1");
            Teacher teacher2 = new Teacher("Gogo2");
            Teacher teacher3 = new Teacher("Gogo3");
            Teacher teacher4 = new Teacher("Gogo4");

            school.AddTeacher(teacher1, teacher2, teacher3, teacher4);
            school.DeleteTeacher("Gogo2");
            Subject subject = new Subject("Biology", 14, 14);

            teacher1.AddSubject(subject);
            school.PrintTeachers();
            Student student1 = new Student("Gogo", "Ivanov", 1);
            Student student2 = new Student("Ivan", "Ivanov", 3);
            Student student3 = new Student("Dimitar", "Ivanov", 2);
            Student student4 = new Student("Bojidar", "Ivanov", 4);

            a.AddStudent(student1, student3, student2, student4);
            a.PrintStudents();
        }
Esempio n. 4
0
        static void Main()
        {
            Student student = new Student("Nerd", "12345");

            Teacher teacher = new Teacher("Shibanqk");

            SchoolClass math = new SchoolClass("math");

            math.AddStudent(student);
            math.AddComment("asdf");
            Console.WriteLine(math);
        }
Esempio n. 5
0
        static void Main()
        {
            School TelerikSchool = new School("Telerik");

            SchoolClass telerikClass = new SchoolClass();
            SchoolClass writersClass = new SchoolClass();
            SchoolClass dotaCharactersClass = new SchoolClass();

            telerikClass.AddStudent(new Student("Svetlin", "Nakov", 30));
            telerikClass.AddStudent(new Student("Doncho", "Minkov", 25));
            telerikClass.AddStudent(new Student("Nikolay", "Kostov", 23));
            telerikClass.AddStudent(new Student("George", "Georgiev", 22));
            telerikClass.AddTeacher(new Teacher("Pavel", "Kolev", 24));
            telerikClass.AddTeacher(new Teacher("Mihail", "Petrov", 23));
            telerikClass.AddTeacher(new Teacher("Lyubomir", "Yanchev", 18));

            writersClass.AddStudent(new Student("Ivan", "Vazov", 23));
            writersClass.AddStudent(new Student("Lyuben", "Karavelov", 22));
            writersClass.AddTeacher(new Teacher("Dimcho", "Debelqnov", 24));
            writersClass.AddTeacher(new Teacher("Nikola", "Vapcarov", 23));

            dotaCharactersClass.AddStudent(new Student("Tinker", "Bouch", 22));
            dotaCharactersClass.AddStudent(new Student("Spectre", "Mercurial", 22));
            dotaCharactersClass.AddStudent(new Student("Alleria", "Windrunner", 22));
            dotaCharactersClass.AddStudent(new Student("Drow", "Ranger", 22));
            dotaCharactersClass.AddTeacher(new Teacher("Zeus", "Lord of olympia", 24));
            dotaCharactersClass.AddTeacher(new Teacher("Kunka", "Captain", 24));
            dotaCharactersClass.AddTeacher(new Teacher("Mortred", "Phantom assassin", 24));
            dotaCharactersClass.AddTeacher(new Teacher("Pudge", "Butcher", 24));
            dotaCharactersClass.AddTeacher(new Teacher("Mirana", "Priestess of the moon", 23));

            TelerikSchool.AddClass(new SchoolClass());
            TelerikSchool.AddClass(telerikClass);
            TelerikSchool.AddClass(writersClass);
            TelerikSchool.AddClass(dotaCharactersClass);

            Console.WriteLine(TelerikSchool);

            
        }
Esempio n. 6
0
        static void Main()
        {
            School TelerikSchool = new School("Telerik");

            SchoolClass telerikClass        = new SchoolClass();
            SchoolClass writersClass        = new SchoolClass();
            SchoolClass dotaCharactersClass = new SchoolClass();

            telerikClass.AddStudent(new Student("Svetlin", "Nakov", 30));
            telerikClass.AddStudent(new Student("Doncho", "Minkov", 25));
            telerikClass.AddStudent(new Student("Nikolay", "Kostov", 23));
            telerikClass.AddStudent(new Student("George", "Georgiev", 22));
            telerikClass.AddTeacher(new Teacher("Pavel", "Kolev", 24));
            telerikClass.AddTeacher(new Teacher("Mihail", "Petrov", 23));
            telerikClass.AddTeacher(new Teacher("Lyubomir", "Yanchev", 18));

            writersClass.AddStudent(new Student("Ivan", "Vazov", 23));
            writersClass.AddStudent(new Student("Lyuben", "Karavelov", 22));
            writersClass.AddTeacher(new Teacher("Dimcho", "Debelqnov", 24));
            writersClass.AddTeacher(new Teacher("Nikola", "Vapcarov", 23));

            dotaCharactersClass.AddStudent(new Student("Tinker", "Bouch", 22));
            dotaCharactersClass.AddStudent(new Student("Spectre", "Mercurial", 22));
            dotaCharactersClass.AddStudent(new Student("Alleria", "Windrunner", 22));
            dotaCharactersClass.AddStudent(new Student("Drow", "Ranger", 22));
            dotaCharactersClass.AddTeacher(new Teacher("Zeus", "Lord of olympia", 24));
            dotaCharactersClass.AddTeacher(new Teacher("Kunka", "Captain", 24));
            dotaCharactersClass.AddTeacher(new Teacher("Mortred", "Phantom assassin", 24));
            dotaCharactersClass.AddTeacher(new Teacher("Pudge", "Butcher", 24));
            dotaCharactersClass.AddTeacher(new Teacher("Mirana", "Priestess of the moon", 23));

            TelerikSchool.AddClass(new SchoolClass());
            TelerikSchool.AddClass(telerikClass);
            TelerikSchool.AddClass(writersClass);
            TelerikSchool.AddClass(dotaCharactersClass);

            Console.WriteLine(TelerikSchool);
        }