public WithdrawCashFromParent ( |
||
parent | ||
amount | decimal | |
description | string | |
mediator | IMediator | |
Résultat | void |
public virtual void WithdrawCashFromParent(Parent parent, decimal amount, string description, IMediator mediator)
{
var insufficientFundsMessage = string.Format(
"You can not withdraw {0} because you only have {1} in your account",
amount.ToString("c"),
Account.Balance.ToString("c"));
WithdrawInternal(parent, amount, description, insufficientFundsMessage);
parent.SendMessage(string.Format("{0} would like to withdraw {1}", Name, amount.ToString("c")), mediator);
}