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