public CreditCardPaymentService GetPaymentService() { var acquiringBank = _dataOperations.GetAcquiringBank(); return(acquiringBank switch { EAcquiringBanks.HSBCBank => new HSBCService(_configuration), EAcquiringBanks.INGBank => new INGService(_configuration), _ => throw new Exception("Acquiring bank info not found!"), });