public IActionResult UserCart(IEnumerable <Skudetail> _skudetail) { PromotionClass promoclass = new PromotionClass(); var netamount = promoclass.CalculatePromo(_skudetail); ViewBag.netamount = netamount.ToString(); return(View(_skudetail)); }
public void Invalid_Product_Type_Test() { //Arrange string type = "F"; //Act var response = PromotionClass.GetProductPrice(type); //Assert Assert.Equal(0, response.Price); }