예제 #1
0
 public void Remove(IAmount amount)
 {
     _amount -= amount.Amount();
 }
예제 #2
0
 public void Increase(IAmount amount)
 {
     _amount += amount.Amount();
     World.Publish(new RentIncreased());
 }
예제 #3
0
 public void Add(IAmount amount)
 {
     _amount += amount.Amount();
     World.Publish(new MoneyDeposited());
 }
예제 #4
0
 public void PaySalary(IAmount amount)
 {
     _amount += amount.Amount();
     World.Publish(new SalaryPaymentOccured(amount));
     World.Publish(new MoneyDeposited());
 }
예제 #5
0
 public decimal Amount()
 {
     return(_callRate.Amount() * _rating.PaymentMultiplier());
 }
예제 #6
0
 public void Add(IAmount amount)
 {
     _amount += amount.Amount();
 }
예제 #7
0
 public void PaySalary(IAmount amount)
 {
     _amount += amount.Amount();
 }