public void TestThatFilterOnNameContainingAReturnsAlexAnnAndMatt()
 {
     _param.Search[1] = "a";
     _filter = new DatatablePropertyFilter<Person>(_param, _properties);
     IQueryable<Person> filtered = _filter.Filter(People);
     Assert.That(filtered, Is.EquivalentTo(new[] {Alex, Ann, Matt}));
 }
 public void TestThatFilterOnNameAlexReturnsAlex()
 {
     _param.Search[1] = Alex.Name;
     _filter = new DatatablePropertyFilter<Person>(_param, _properties);
     IQueryable<Person> filtered = _filter.Filter(People);
     Assert.That(filtered, Is.EquivalentTo(new[] {Alex}));
 }
 public void TestThatNoFilterDoesntChangeTheEntities()
 {
     _filter = new DatatablePropertyFilter<Person>(_param, _properties);
     IQueryable<Person> filtered = _filter.Filter(People);
     Assert.That(filtered, Is.EquivalentTo(People));
 }