예제 #1
0
 public void SetPaidWithAndCalculateChange(double theAmountPaid)
 {
     CheckIfAmountPaidIsPositive(theAmountPaid);
     PaidWith = theAmountPaid;
     Total    = CalculatePaymentTotal();
     Change   = PaymentMethod.PayAndReturnChange(this.Total, this.PaidWith);
 }