示例#1
0
 public Sell(DateTime date, int quantity, Wear wear, IPayment payment)
 {
     Date     = date;
     Quantity = quantity;
     Wear     = wear;
     Payment  = payment;
 }
示例#2
0
 public double GetTotal()
 {
     return(Quantity * Payment.GetPrice(Wear.GetPrice(), Quantity));
 }