示例#1
0
        public IActionResult UserCart(IEnumerable <Skudetail> _skudetail)
        {
            PromotionClass promoclass = new PromotionClass();
            var            netamount  = promoclass.CalculatePromo(_skudetail);

            ViewBag.netamount = netamount.ToString();
            return(View(_skudetail));
        }
示例#2
0
        public void Invalid_Product_Type_Test()
        {
            //Arrange
            string type = "F";

            //Act
            var response = PromotionClass.GetProductPrice(type);

            //Assert
            Assert.Equal(0, response.Price);
        }