public static AbstractBllFactory GetBllFactory()
 {
     string bllType = ConfigurationManager.AppSettings["bllType"];
     AbstractBllFactory bllFactory = null;
     switch (bllType)
     {
         case "blla":
             bllFactory = new BllFactoryA();
             break;
         case "bllb":
             bllFactory = new BllFactoryB();
             break;
     }
     return bllFactory;
 }
Beispiel #2
0
        public static AbstractBllFactory GetBllFactory()
        {
            string             bllType    = ConfigurationManager.AppSettings["bllType"];
            AbstractBllFactory bllFactory = null;

            switch (bllType)
            {
            case "blla":
                bllFactory = new BllFactoryA();
                break;

            case "bllb":
                bllFactory = new BllFactoryB();
                break;
            }
            return(bllFactory);
        }