Exemplo n.º 1
0
 private decimal GetMaximumTransferrableAmount(TripMember sender, TripMember receiver)
 {
     return Math.Min(Math.Abs(GetBalance(sender)), GetBalance(receiver));
 }
Exemplo n.º 2
0
 private decimal GetBalance(TripMember member)
 {
     return member.AmountOwed + member.AmountTransferred;
 }