public void SubtractFrom(Money money) { if (money == null) return; Amount = Amount - money.Amount; }
public bool IsLessThan(Money compare) { return Amount < compare.Amount; }
public Money Subtract(Money money) { if (money == null) return this; return new Money().SetInitialAmount(this.Amount - money.Amount); }
public bool IsGreaterThan(Money compare) { return Amount > compare.Amount; }
public bool IsLessET(Money compare) { return Amount <= compare.Amount; }
public bool IsGreaterET(Money compare) { return Amount >= compare.Amount; }
public bool IsEqual(Money compare) { return Amount == compare.Amount; }
public void AddTo(Money money) { if (money == null) return; Amount = Amount + money.Amount; }
public Money Add(Money money) { if (money == null) return this; return new Money().SetInitialAmount(this.Amount + money.Amount); }
public void Can_produce_a_formatted_money_string() { XFMath.Assign(RoundMethods.HalfUp); var mon = new Money(18.25m); var val = mon.Formatted; }