예제 #1
0
 private bool OrderTotalMatches(Payment payment)
 {
     return(Total() == payment.Amount);
 }
예제 #2
0
 private string GetDetailsOnIssueWith(Payment payment)
 {
     return(String.Format("Payment amount is invalid. " +
                          "Order total is {0} but payment for {1}." +
                          " Payment token '{2}'", this.Total(), payment.Amount, payment.TransactionId));
 }