Esempio n. 1
0
 public override IValue Substract(MoneyValue other)
 {
     return(new MoneyValue(other.Value - this.Value));
 }
Esempio n. 2
0
 public override IValue Divide(MoneyValue other)
 {
     return(new MoneyValue(other.Value / this.Value));
 }
Esempio n. 3
0
 public override BooleanValue Equals(MoneyValue other)
 {
     return(new BooleanValue(other.Value == this.Value));
 }
Esempio n. 4
0
 public override IValue Add(MoneyValue other)
 {
     return(new MoneyValue(other.Value + this.Value));
 }
Esempio n. 5
0
 public override BooleanValue GreaterThanOrEqualTo(MoneyValue other)
 {
     return(new BooleanValue(other.Value >= this.Value));
 }
Esempio n. 6
0
 public override BooleanValue LessThanOrEqualTo(MoneyValue other)
 {
     return(new BooleanValue(other.Value <= this.Value));
 }
Esempio n. 7
0
 public override IValue Multiply(MoneyValue other)
 {
     return(new MoneyValue(other.Value * this.Value));
 }
Esempio n. 8
0
 public override IValue Add(MoneyValue other)
 {
     return(new StringValue(this.Value + other.Value.ToString(CultureInfo.InvariantCulture)));
 }
Esempio n. 9
0
 public override IValue Add(MoneyValue other)
 {
     return(new MoneyValue((decimal)this.Value + other.Value));
 }
Esempio n. 10
0
 public override BooleanValue GreaterThan(MoneyValue other)
 {
     return(new BooleanValue(other.Value > (decimal)this.Value));
 }
Esempio n. 11
0
 public override BooleanValue LessThan(MoneyValue other)
 {
     return(new BooleanValue(other.Value < (decimal)this.Value));
 }