Example #1
0
        public void visit(DigitalCmsCoupon c)
        {
            CmsCouponPricer cmsCouponPricer = pricer_ as CmsCouponPricer;

            Utils.QL_REQUIRE(cmsCouponPricer != null, () => "pricer not compatible with CMS coupon");
            c.setPricer(cmsCouponPricer);
        }
Example #2
0
        public void visit(DigitalCmsCoupon c)
        {
            CmsCouponPricer pricer = pricer_ as CmsCouponPricer;

            if (pricer == null)
            {
                throw new ApplicationException("pricer not compatible with CMS coupon");
            }
            c.setPricer(pricer);
        }
Example #3
0
 public void visit(DigitalCmsCoupon c)
 {
     CmsCouponPricer pricer = pricer_ as CmsCouponPricer;
     if (pricer == null)
         throw new ApplicationException("pricer not compatible with CMS coupon");
     c.setPricer(pricer);
 }