Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created March 26, 2018 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dance2die/8ae2a62261d3784c713a44b6eed24b56 to your computer and use it in GitHub Desktop.
Save dance2die/8ae2a62261d3784c713a44b6eed24b56 to your computer and use it in GitHub Desktop.
public class NullPaymentStrategy : IPaymentStrategy
{
public static readonly IPaymentStrategy Instance = new NullPaymentStrategy();
private NullPaymentStrategy() { }
public ProcessStatus Process(double amount)
{
return ProcessStatus.NoOp;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment