/// <summary> /// Initializes a new instance of the <see cref="CouponDiscountLineItemRewardVisitor"/> class. /// </summary> /// <param name="amount"> /// The amount. /// </param> /// <param name="adjustmentType"> /// The adjustment type. /// </param> public CouponDiscountLineItemRewardVisitor(decimal amount, CouponDiscountLineItemReward.Adjustment adjustmentType) { if (MerchelloContext.Current == null) throw new NullReferenceException("MerchelloContext was null"); this._amount = amount; this._adjustmentType = adjustmentType; this.Initialize(); }
/// <summary> /// Initializes a new instance of the <see cref="CouponDiscountLineItemRewardVisitor"/> class. /// </summary> /// <param name="amount"> /// The amount. /// </param> /// <param name="adjustmentType"> /// The adjustment type. /// </param> public CouponDiscountLineItemRewardVisitor(decimal amount, CouponDiscountLineItemReward.Adjustment adjustmentType) { if (MerchelloContext.Current == null) { throw new NullReferenceException("MerchelloContext was null"); } this._amount = amount; this._adjustmentType = adjustmentType; this.Initialize(); }