예제 #1
0
 public override void Pay()
 {
     PaymentMedium.StartTransaction("Master");
     Console.WriteLine($"Master Payment Method via {PaymentMedium.GetType().Name}");
 }
예제 #2
0
 public override void Pay()
 {
     PaymentMedium.StartTransaction("American Express");
     Console.WriteLine($"AmericanExpress Payment Method Invoked via {PaymentMedium.GetType().Name}");
 }