Esempio n. 1
0
        public static BankDetail GetBank(string countryCode, BankIdentifier bankId)
        {
            var bankNumber   = GetBankNumber(bankId);
            var testSettings = TestConfig.TestSettings;

            return(BankData.ContainsKey(testSettings.AcEnvironment) &&
                   BankData[testSettings.AcEnvironment].ContainsKey(countryCode) && BankData[testSettings.AcEnvironment][countryCode].Exists(x => x.BankInfo.HierarchyLevelElementNumber == bankNumber) ?
                   BankData[testSettings.AcEnvironment][countryCode].Find(x => x.BankInfo.HierarchyLevelElementNumber == bankNumber): null);
        }
Esempio n. 2
0
        private static long GetBankNumber(BankIdentifier bankIdentifier)
        {
            switch (bankIdentifier)
            {
            case BankIdentifier.ABHY:
                return(301567);

            case BankIdentifier.ADCB:
                return(331116);

            default:
                return(0);
            }
        }