示例#1
0
        public void SimpleFactoryTest()
        {
            Course course = new Course();

            course.Type = SimpleFactory.CreateClassrom(CourseType.Online);
            Assert.IsInstanceOfType(course.Type, typeof(OnlineCourse));
        }