Esempio n. 1
0
        static void AddGroups(School school)
        {
            var teachers = school.GetTeachers();

            school.AddGroup(new Group("Programmering H2", teachers["Mads Bock"]));
            school.AddGroup(new Group("Swag 101", teachers["Guy Fieri"]));
            school.AddGroup(new Group("Fighting Crime", teachers["Bat Man"]));
            school.AddGroup(new Group("Pizza Time", teachers["Peter Parker"]));
        }
Esempio n. 2
0
 /// <summary>
 /// Метод, добавляющий группу в школу.
 /// </summary>
 /// <param name="input"> Хранит данные ввода для группы </param>
 /// <param name="school"> Школа </param>
 internal static void AddGroup(InputGroupData input, School school)
 {
     input.InputGroupSpecification();
     school.AddGroup(input.GetGroupCode());
 }