Last active
October 6, 2024 20:42
-
-
Save abdulateef/c500fb93c734505c1d09e22445b92e88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TransactionManager_AntiOcp | |
{ | |
public TransactionManager() | |
{ | |
} | |
public void Payment(string paymentMethod) | |
{ | |
if(paymentMethod == "inbound") | |
{ | |
//process inbound payment | |
} | |
if(paymentMethod == "card") | |
{ | |
//process outbound payment | |
} | |
if(paymentMethod == "swift") | |
{ | |
//process swift payment | |
} | |
if(paymentMethod == "wireTransfer") | |
{ | |
//process wire payment | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment