示例#1
0
 public static ICourseStorage CreateStorage(CourseStorageType type)
 {
     throw new NotSupportedException("This factory is obsolete");
     switch (type)
     {
         case CourseStorageType.Database:
             throw new NotImplementedException();
         case CourseStorageType.FileSystem:
             throw new NotImplementedException();
         //case CourseStorageType.Mixed:
             //return new MixedCourseStorage();
         default:
             throw new Exception("Can't create storage of such type");
     }
 }
示例#2
0
        public static ICourseStorage CreateStorage(CourseStorageType type)
        {
            throw new NotSupportedException("This factory is obsolete");
            switch (type)
            {
            case CourseStorageType.Database:
                throw new NotImplementedException();

            case CourseStorageType.FileSystem:
                throw new NotImplementedException();

            //case CourseStorageType.Mixed:
            //return new MixedCourseStorage();
            default:
                throw new Exception("Can't create storage of such type");
            }
        }