Exemplo n.º 1
0
        private static void SetPayment(string paymentType, string bankCard)
        {
            var type = PaymentFactory.CreatePaymentFactory(paymentType);
            var card = type.GetPayment(bankCard);

            Console.WriteLine(card.Payment() + "\n----------------------------------");
        }