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();
     }
 }
        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();
            }
        }