Esempio n. 1
0
        public void IsAllowPurchaseTest()
        {
            var  goodsId = new Guid("57A29FCD-C12B-4BF4-BCA6-74C1C427AADA");
            bool actual  = _target.IsAllowPurchase(_shopId, goodsId);

            Assert.IsTrue(actual);
            //Assert.Inconclusive("验证此测试方法的正确性。");
        }
Esempio n. 2
0
        /// <summary>  pass
        /// 判断商品是否允许采购 条件:三月内无同品牌下商品退货  该商品无
        /// </summary>
        /// <param name="shopId"></param>
        /// <param name="goodsId"></param>
        /// <returns></returns>
        public bool IsAllowPurchase(Guid shopId, Guid goodsId)
        {
            var applyStockBll = new ApplyStockBLL(null, _goodsCenterSao, null, _shopExchangedApplyDetailWrite);

            return(applyStockBll.IsAllowPurchase(shopId, goodsId));
        }