ReceivePayment() public method

public ReceivePayment ( decimal amount, string description ) : void
amount decimal
description string
return void
Ejemplo n.º 1
0
 public virtual void MakePaymentTo(Child child, decimal amount, string description)
 {
     if (!this.HasChild(child))
     {
         throw new TardisBankException("{0} is not a child of {1}", child.Name, this.Name);
     }
     child.ReceivePayment(amount, description);
 }
Ejemplo n.º 2
0
 public virtual void MakePaymentTo(Child child, decimal amount, string description)
 {
     if (!this.HasChild(child))
     {
         throw new TardisBankException("{0} is not a child of {1}", child.Name, this.Name);
     }
     child.ReceivePayment(amount, description);
 }