Exemplo n.º 1
0
        public CourseClass(Course course, List <Trainer> trainers)
        {
            this.Title     = course.Title;
            this.Stream    = course.Stream;
            this.Type      = course.Type;
            this.StartDate = course.StartDate;
            this.EndDate   = course.EndDate;

            this._trainers    = Initialisation.AssignTrainers(trainers, this.Stream, this.Type);
            this._assignments = Initialisation.SetUpAssignments(this.Type);
            this._students    = Initialisation.SetUpStudents(this.Stream, this.Type);

            foreach (var item in this._students)
            {
                foreach (var item2 in this._assignments)
                {
                    item.Assignments.Add(item2);
                }
            }
        }