Exemple #1
0
        public void AddOrUpdateCCouponDtoTest()
        {
            CCouponDTO couponDTO = new CCouponDTO()
            {
                CouponType         = 1,
                CouponUUID         = System.Guid.NewGuid().ToString(),
                CreateName         = "CreateName",
                CreateTime         = DateTime.Now,
                EffectiveEndTime   = DateTime.Now.AddDays(-1),
                EffectiveStartTime = DateTime.Now.AddDays(100),
                IsDelete           = false,
                OfferAmount        = 0,
                Preferential       = 1,
                PreferentialType   = 1,
                Remark             = "Remark",
                ResUUID            = System.Guid.NewGuid().ToString(),
                State      = 1,
                UpdateName = "UpdateName",
                UpdateTime = DateTime.Now,
                Id         = 6
            };
            int CouponId = CCouponManager.Instance.AddOrUpdateCCouponDto(couponDTO, "operatorName");

            Assert.Fail();
        }
Exemple #2
0
 public ReturnValue <int> AddOrUpdateCCouponDto(CCouponDTO dto, string operatorName)
 {
     return(ReturnValue <int> .Get200OK(CCouponManager.Instance.AddOrUpdateCCouponDto(dto, operatorName)));
 }