Suteki.TardisBank.Domain.Child.ReceivePayment C# (CSharp) Method

ReceivePayment() public method

public ReceivePayment ( decimal amount, string description ) : void
amount decimal
description string
return void
        public virtual void ReceivePayment(decimal amount, string description)
        {
            Account.AddTransaction(description, amount);
        }

Usage Example

コード例 #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);
 }
All Usage Examples Of Suteki.TardisBank.Domain.Child::ReceivePayment