private static ClassroomsEmployment.Lesson GetLessonOfClassroomsEmployment(IElement element) { var number = GetLessonNumberOfClassroomsEmployment(element); var lesson = new ClassroomsEmployment.Lesson(number); var classrooms = element.FirstElementChild.Children; foreach (var item in classrooms) { if (IsClassroomDescription(item)) { lesson.AddClassroom(GetClassroomDescription(item)); } } return(lesson); }