示例#1
0
        //
        // GET: /Car/

        public ActionResult Index(ProposalViewModel pvm)
        {
            CarBusiness car = new CarBusiness();

            pvm.Cars = car.FindAll();
            return(View(pvm));
        }
示例#2
0
        public void TestFindAll()
        {
            car.Manufacturer = "batman";
            car.Model        = "batmovel";
            car.PhotoUrl     = string.Empty;

            carBusiness.Insert(car);
            carBusiness.Insert(car);
            carBusiness.Insert(car);

            Assert.IsTrue(carBusiness.FindAll().Count > 2);
        }