public void UpdateDiscountCoupon() { BLModel.CouponCode = "1qwq2qw"; BLModel.CouponEducationID = 1; BLModel.CouponDiscount = 1; BLModel.CouponExpiryDate = DateTime.Now; BLModel.CouponIssueDate = DateTime.Now; BLModel.CouponProduactID = 0; BLModel.CouponType = "Percent"; BLModel.CouponID = 1; int result = _discountCouponBL.UpdateDiscountCoupon(BLModel); Assert.IsTrue(result > 0, "Unable to update"); }
public int UpdateDiscountCoupon(DTO.DiscountCoupon discountCoupon) { return(_discountCoupon.UpdateDiscountCoupon(Mapper.Map <DTO.DiscountCoupon, HCRGUniversity.Core.BL.Model.DiscountCoupon>(discountCoupon))); }