Skip to content

Instantly share code, notes, and snippets.

@abdulateef
Last active October 6, 2024 20:42
Show Gist options
  • Save abdulateef/c500fb93c734505c1d09e22445b92e88 to your computer and use it in GitHub Desktop.
Save abdulateef/c500fb93c734505c1d09e22445b92e88 to your computer and use it in GitHub Desktop.
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