private Customer GetCustomer(int customerID) { // this data should be user input IList <long> associatedCards = dataSource.GetCardNumbers(customerID); Customer customer = dataSource.LoadCustomersCardInfo(associatedCards[0]); switch (customerID) { case 111: customer.CardInfo.TransactionAmount = 15000; customer.IPAdress = "20.200.20.34"; customer.EmailID = "*****@*****.**"; customer.City = "Munich"; customer.Country = "Berlin"; break; case 112: customer.CardInfo.TransactionAmount = 10000; customer.IPAdress = "20.200.20.34"; customer.EmailID = ""; customer.City = "abc"; customer.Country = "Indonesia"; break; case 113: customer.CardInfo.TransactionAmount = 5000; customer.IPAdress = "172.30.35.40";; customer.EmailID = "*****@*****.**"; customer.City = "Munich"; customer.Country = "Indonesia"; break; case 114: customer.CardInfo.TransactionAmount = 1000; customer.IPAdress = "20.200.20.34"; customer.EmailID = "*****@*****.**"; customer.Country = "Yugoslavia"; break; case 115: customer.CardInfo.TransactionAmount = 5000; customer.IPAdress = "172.19.35.40"; customer.EmailID = "*****@*****.**"; customer.City = "Munich"; break; } customer.CustomerID = customerID; return(customer); }