public void GetProducts_Exists() { var model = new PricingModel(); model.GetProducts(); Assert.IsNotNull(model.PricingProductsList); Assert.IsNotNull(model.SelectedProductIds); Assert.IsTrue(model.PricingProductsList.Any()); }
public ViewResult Index() { var model = new PricingModel(); model.GetProducts(); return View(model); }