Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Paymnet order = new CardPayment();

            order._IPaymentSystem = new NaxuxPayment();
            order.MakePayment("ciry paymnet");
            Console.ReadLine();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Payment order = new CardPayment();

            order._IPaymentSystem = new CitiPaymentSystem();
            order.MakePayment();

            order._IPaymentSystem = new IDBIPaymentSystem();
            order.MakePayment();

            order = new NetBankingPayment();
            order._IPaymentSystem = new CitiPaymentSystem();
            order.MakePayment();

            Console.ReadKey();
        }