Exemplo n.º 1
0
 public RateAndAmount(PercentageRate rate = null, CurrencyAndAmount amount = null)
 {
     if (rate != null)
     {
         this.Rate = rate;
     }
     else
     {
         this.Rate = new PercentageRate();
     }
     if (amount != null)
     {
         this.Amount = amount;
     }
     else
     {
         this.Amount = new CurrencyAndAmount();
     }
 }
Exemplo n.º 2
0
        public SecuritiesQuantity(int unit, PercentageRate rate = null, CurrencyAndAmount amount = null)
        {
            if (rate != null)
            {
                this.Rate = rate;
            }
            else
            {
                this.Rate = new PercentageRate();
            }

            this.Unit = unit;

            if (amount != null)
            {
                this.Amount = amount;
            }
            else
            {
                this.Amount = new CurrencyAndAmount();
            }
        }