示例#1
0
        public void TestPaymentFactoryForPaymentStatusOfCardPayment()
        {
            PaymentFactory paymentFactory = new PaymentFactory();
            IPayment       payment        = paymentFactory.GetPaymentMethod("card");

            payment.SendDetails("ABC", "XY345");
            Assert.Equal(true, payment.DoPayment());
        }
示例#2
0
 internal bool MakePayment()
 {
     if (_payment.DoPayment())
     {
         return(_payment.PaymentStatus());
     }
     return(false);
 }
示例#3
0
 public void DoPayment()
 {
     _payment.DoPayment();
 }