public virtual void Add(CompositeMoney other)
        {
            if (null == other)
            {
                return;
            }

            if (null == this.FixedAmount)
            {
                this.FixedAmount = new MoneyBuilder(other.FixedAmount);
            }
            else
            {
                this.FixedAmount.Add(FixedAmount);
            }

            if (null == this.VariableAmount)
            {
                this.VariableAmount = new MoneyBuilder(other.VariableAmount);
            }
            else
            {
                this.VariableAmount.Add(VariableAmount);
            }
        }
Пример #2
0
 public static CompositeMoney Clone(CompositeMoney original)
 {
     if (null == original)
     {
         return(null);
     }
     else
     {
         return(new CompositeMoney(original));
     }
 }
Пример #3
0
 public CompositeMoney(CompositeMoney original)
 {
     this.FixedAmount    = original.FixedAmount;
     this.VariableAmount = original.VariableAmount;
     this.TotalAmount    = original.TotalAmount;
 }