Esempio n. 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);
        }
Esempio n. 2
0
 public ConfigurationDBHelper(CommonEnum.ServieProvider serviceProvider, ConfigSettingType configType)
 {
     this.ConnectionString  = CarSCSCommonHelper.DBConnectionStringGet(ConfigSettingHelper.ServiceNameGet(serviceProvider));
     this.ConfigurationType = configType;
 }
Esempio n. 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));
 }
 public ErrorMapHelper(CommonEnum.ServieProvider serviceProvider)
 {
     this.ConnectionString = CarSCSCommonHelper.DBConnectionStringGet(Util.ConfigSettingHelper.ServiceNameGet(serviceProvider));
 }