Beispiel #1
0
 public void SubtractFrom(Money money)
 {
     if (money == null) return;
      Amount = Amount - money.Amount;
 }
Beispiel #2
0
 public bool IsLessThan(Money compare)
 {
     return Amount < compare.Amount;
 }
Beispiel #3
0
 public Money Subtract(Money money)
 {
     if (money == null) return this;
      return new Money().SetInitialAmount(this.Amount - money.Amount);
 }
Beispiel #4
0
 public bool IsGreaterThan(Money compare)
 {
     return Amount > compare.Amount;
 }
Beispiel #5
0
 public bool IsLessET(Money compare)
 {
     return Amount <= compare.Amount;
 }
Beispiel #6
0
 public bool IsGreaterET(Money compare)
 {
     return Amount >= compare.Amount;
 }
Beispiel #7
0
 public bool IsEqual(Money compare)
 {
     return Amount == compare.Amount;
 }
Beispiel #8
0
 public void AddTo(Money money)
 {
     if (money == null) return;
      Amount = Amount + money.Amount;
 }
Beispiel #9
0
 public Money Add(Money money)
 {
     if (money == null) return this;
      return new Money().SetInitialAmount(this.Amount + money.Amount);
 }
Beispiel #10
0
 public void Can_produce_a_formatted_money_string()
 {
     XFMath.Assign(RoundMethods.HalfUp);
      var mon = new Money(18.25m);
      var val = mon.Formatted;
 }