public void GetAllProducts_Exists() { var model = new ProductModel(); model.GetProducts(); Assert.IsNotNull(model.Products); Assert.IsTrue(model.Products.Any()); }
public void GetProducts() { var modelC = new ProductModel(); modelC.GetProducts(); SelectedProductIds = new string[modelC.Products.Count()]; PricingProductsList = modelC.Products.Select(c => new SelectListItem { Text = c.Name, Value = c.Id.ToString() }); }