Beispiel #1
0
            public void After()
            {
                var collection = new PersonAfter();

                collection.SetId(1);
                collection.SetName("Piotr");
                collection.SetSurname("Czech");
                collection.SetAge(22);
                var course = new CourseAfter();

                course.SetId(1);
                course.SetName("Refactoring");
                collection.AddCourse(course);

                //Or
                var secondCollection = new PersonAfter();

                secondCollection.InitializePerson(1, "Piotr", "Czech", 22);
                var secondCourse = new CourseAfter();

                secondCourse.InitializeCourse(1, "refactoring");
                secondCollection.AddCourse(secondCourse);
            }
Beispiel #2
0
 public void RemoveCourse(CourseAfter course)
 {
     _courses.Remove(course);
 }
Beispiel #3
0
 public void AddCourse(CourseAfter course)
 {
     _courses.Add(course);
 }