public void ContextIsOK()
 {
     var context = new CarContext();
     var all = context.Car.ToList();
     all.ForEach(r => context.Car.Remove(r));
     context.SaveChanges();
     context.Car.Add(new Car()
     {
         CarName = "Ford",
         CarPrice = 100000
     });
     context.SaveChanges();
     var cars = context.Car.ToList();
     Assert.AreEqual(cars.Count, 1);
     Assert.AreEqual(cars.FirstOrDefault().CarName, "Ford");
     Assert.AreEqual(cars.FirstOrDefault().CarPrice, 100000);
 }
        public void TestUpdate()
        {
            using (CarContext context = new CarContext())
            {
                var testContext = new EFRepository<Car, int>(context);

                var car = context.Car.AsNoTracking().AsQueryable().ToList();
                //context.Car.Where(x => x.ID == 1).Update(x => new Car { CarPrice = 12 });

                //testContext.Update(x => x.ID == 1, x => new Car { CarPrice = 12 });
                context.SaveChanges();
            }
        }