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); }
private static long GetBankNumber(BankIdentifier bankIdentifier) { switch (bankIdentifier) { case BankIdentifier.ABHY: return(301567); case BankIdentifier.ADCB: return(331116); default: return(0); } }