Exemple #1
0
        public void TestAddCourseToStudent()
        {
            var student1    = new Student("Tom Erik", "*****@*****.**");
            var course1     = new Course("StartIT");
            var courseList  = new CourseList();
            var studentList = new StudentList();
            var addStudent  = studentList.AddStudent(student1);

            courseList.AddCourse(course1);

            var result = studentList.AddCourseToStudent(course1, student1);

            Assert.AreEqual(true, result);
        }