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