public virtual void TestGroupByWithCountInWhere() { var list = db.Customers.Where(a => a.Orders.Count() > 15).GroupBy(a => a.City).ToList(); AssertValue(9, list.Count); }