public void TestingCourseCreationWithValidName()
 {
     string name = "Tech class";
     var course = new Course(name);
     Assert.AreEqual(
         name,
         course.Name,
         string.Format("The name {0} does not equal the expected name {1}",
         course.Name,
         name));
 }
        public void TestingCourseAddingInvalidNumberOfStudents()
        {
            string name = "Tech class";
            string studentName = "John";
            int id = 10000;
            var student = new Student(studentName, id);
            var course = new Course(name);

            for (var i = 0; i < 32; i += 1)
            {
                course.AddStudent(student);
            }
        }
        public void TestingSchoolAddingStudents()
        {
            string name = "TeleriGGG";
            string courseName = "Tech";
            int id = 10000;
            var school = new School(name);
            var course = new Course(courseName);
            school.AddCourse(course);

            Assert.AreEqual(
                course,
                school.Courses[0],
                string.Format("The object {0} does not equal the expected object {1}",
                school.Courses[0],
                course));
        }
        public void TestingCourseAddingStudents()
        {
            string name = "Tech class";
            string studentName = "John";
            int id = 10000;
            var student = new Student(studentName, id);
            var course = new Course(name);
            course.AddStudent(student);

            Assert.AreEqual(
                student,
                course.Students[0],
                string.Format("The object {0} does not equal the expected object {1}",
                course.Students[0],
                student));
        }
        public void TestingSchoolRemovingStudents()
        {
            string name = "TeleriGGG";
            string courseName = "Tech";
            int length = 0;
            var school = new School(name);
            var course = new Course(courseName);
            school.AddCourse(course);
            school.RemoveCourse(course);

            Assert.AreEqual(
                            length,
                            school.Courses.Count,
                            string.Format("The length {0} does not equal the expected length {1}",
                            school.Courses.Count,
                            length));
        }
        public void TestingCourseRemovingStudents()
        {
            string name = "Tech class";
            string studentName = "John";
            int id = 10000;
            var student = new Student(studentName, id);
            var course = new Course(name);
            course.AddStudent(student);
            course.RemoveStudent(student);

            Assert.AreEqual(
                0,
                course.Students.Count,
                string.Format("The length {0} does not equal the expected length {1}",
                course.Students.Count,
                0));
        }
 public void TestingCourseCreationWithInvalidName()
 {
     string name = null;
     var course = new Course(name);
 }
 public void RemoveCourse(Course course)
 {
     this.Courses.Remove(course);
 }
 public void AddCourse(Course course)
 {
     this.Courses.Add(course);
 }