/// <summary>
 /// Creates an instance.
 /// </summary>
 /// <param name="swapPricer">  the pricer for <seealso cref="Swap"/> </param>
 /// <param name="paymentPricer">  the pricer for <seealso cref="Payment"/> </param>
 public DiscountingCmsTradePricer(DiscountingSwapProductPricer swapPricer, DiscountingPaymentPricer paymentPricer)
 {
     this.paymentPricer = ArgChecker.notNull(paymentPricer, "paymentPricer");
     this.productPricer = new DiscountingCmsProductPricer(swapPricer);
 }