Esempio n. 1
0
 /// <summary>
 /// Add payment to list of payments when it is authorized.
 /// </summary>
 /// <param name="payment">One of payment method: CashPayment, CheckPayment, or CreditCardPayment</param>
 public void processPayment(PaymentMethod payment)
 {
     if (payment.process())
         this.addPayment(payment);
 }
Esempio n. 2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="payment"></param>
 public void addPayment(PaymentMethod payment)
 {
     payments.Add(payment);
 }
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="payment"></param>
 public void addPayment(PaymentMethod payment)
 {
     payments.Add(payment);
 }