public void GetAllOrderByIsOK() { var context = new CarContext(); var testContext = new EFRepository<Car,int>(context); context.Car.ToList().ForEach(r => testContext.Delete(r)); testContext.Save(); var car = new Car() { CarName = "Ford", CarPrice = 100000 }; var car1 = new Car() { CarName = "Toyota", CarPrice = 99999 }; testContext.Insert(car); testContext.Insert(car1); testContext.Save(); var cars = testContext.GetList(r => r.CarPrice == 100000, null, "").ToList(); Assert.AreEqual(cars.Count, 1); Assert.AreEqual(cars.FirstOrDefault().CarName, "Ford"); Assert.AreEqual(cars.FirstOrDefault().CarPrice, 100000); }