// [HostType("ASP.NET")] // [AspNetDevelopmentServerHost("C:\\Users\\cezar\\MvcAA\\MvcAutoAuction1\\MvcAutoAuction", "/")] public void indexCarsTest() { CatalogManagerDAL target = new CatalogManagerDAL(); // TODO: Initialize to an appropriate value // List<Car> expected = null; // TODO: Initialize to an appropriate value List<Car> actual; actual = target.indexCars(); Assert.IsNotNull(actual); // Assert.Inconclusive("Verify the correctness of this test method."); }
// // GET: /CatalogManager/ public ViewResult Index() { /*var cars = db.Cars.Include(c => c.Brand).Include(c => c.Auto); return View(cars.ToList());*/ CatalogManagerDAL dal = new CatalogManagerDAL(); var cars = dal.indexCars(); return View(cars); }