public static void Main(string[] args) { var creditcard = PaymentFactory.create(Mode.DebitCard); PaymentManager paymentManager = new PaymentManager(creditcard); paymentManager.ManagePayment(); Console.ReadKey(); }
public static void Main(string[] args) { var creditcard = PaymentFactory.create(Mode.DebitCard); PaymentManager paymentManager = new PaymentManager(creditcard); paymentManager.ManagePayment(); Console.ReadKey(); }