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