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; }
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); }