示例#1
0
 protected void When(AccountDebited e)
 {
     balance = Money.Amount(balance - Money.Amount(e.Amount));
 }
示例#2
0
 protected void When(AccountCredited e)
 {
     balance += Money.Amount(e.Amount);
 }