예제 #1
0
파일: Sell.cs 프로젝트: ciromartin/Macowins
 public Sell(DateTime date, int quantity, Wear wear, IPayment payment)
 {
     Date     = date;
     Quantity = quantity;
     Wear     = wear;
     Payment  = payment;
 }
예제 #2
0
파일: Sell.cs 프로젝트: ciromartin/Macowins
 public double GetTotal()
 {
     return(Quantity * Payment.GetPrice(Wear.GetPrice(), Quantity));
 }