public void InValidProductPrice() { var shoppingclass = new ShoppingClass(); Assert.Throws <ArgumentOutOfRangeException>(() => shoppingclass.Shopping(new Models.Product() { ProductPrice = 0 }, DateTime.Now, 1)); }
public void ValidProductAvailabilty() { var shoppingclass = new ShoppingClass(); Assert.Throws <ArgumentOutOfRangeException>(() => shoppingclass.Shopping(new Models.Product() { ProductAvailability = 1 }, DateTime.Now, 1)); }
public void InValidQuantity() { var shoppingclass = new ShoppingClass(); Assert.Throws <ArgumentOutOfRangeException>(() => shoppingclass.Shopping(new Models.Product(), DateTime.Now, -1)); }
public void InVaildTime() { var shoppingclass = new ShoppingClass(); Assert.Throws <ArgumentOutOfRangeException>(() => shoppingclass.Shopping(new Models.Product(), DateTime.Now.AddHours(1), 1)); }