Пример #1
0
        /// <summary>
        /// get config key for SCSs for app.config
        /// </summary>
        /// <param name="serviceProvider"></param>
        /// <returns></returns>
        public static string DBConfigKeyGet(CommonEnum.ServieProvider serviceProvider)
        {
            string key = string.Empty;

            switch (serviceProvider)
            {
            case Util.CarCommonEnumManager.ServieProvider.worldSpanSCS:
                key = "CarWorldspanSCS";
                break;

            case Util.CarCommonEnumManager.ServieProvider.Amadeus:
                key = "CarAmadeusSCS";
                break;

            case Util.CarCommonEnumManager.ServieProvider.MNSCS:
                key = "CarMicronNexusSCS";
                break;

            case Util.CarCommonEnumManager.ServieProvider.TitaniumSCS:
                key = "CarTitaniumSCS";
                break;
            }
            if (string.IsNullOrEmpty(key))
            {
                Assert.Fail(string.Format("no mapping DB Key in app.config for {0}!", serviceProvider.ToString()));
            }
            return(key);
        }
Пример #2
0
 public ConfigurationDBHelper(CommonEnum.ServieProvider serviceProvider, ConfigSettingType configType)
 {
     this.ConnectionString  = CarSCSCommonHelper.DBConnectionStringGet(ConfigSettingHelper.ServiceNameGet(serviceProvider));
     this.ConfigurationType = configType;
 }
Пример #3
0
 public ExternalSupplyServiceDomainValueMapHelper(CommonEnum.ServieProvider serviceProvider)
 {
     this.ConnectionString = CarSCSCommonHelper.DBConnectionStringGet(Util.ConfigSettingHelper.ServiceNameGet(serviceProvider));
 }
 public POSToAmadeusDefaultSegmentMapTblHelper(CommonEnum.ServieProvider serviceProvider)
 {
     this.ConnectionString = CarSCSCommonHelper.DBConnectionStringGet(Util.ConfigSettingHelper.ServiceNameGet(serviceProvider));
 }
Пример #5
0
 public ErrorMapHelper(CommonEnum.ServieProvider serviceProvider)
 {
     this.ConnectionString = CarSCSCommonHelper.DBConnectionStringGet(Util.ConfigSettingHelper.ServiceNameGet(serviceProvider));
 }