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