Exemplo n.º 1
0
 public void GenericContainTest()
 {
     var vm = new SortingFilterModel();
     var filterService = new FilterService(new ExpressionBuilder(), new SortingService(new ExpressionBuilder()));
     var query = Persons.AsQueryable();
     query = filterService.AppendQueryWithContains<Person>("PhoneNr", "12345", query, vm.AsSortingFilterModel);
     Assert.IsTrue(query.Count() == 4);
 }
Exemplo n.º 2
0
        public void GenericContainTest()
        {
            var vm            = new SortingFilterModel();
            var filterService = new FilterService(new ExpressionBuilder(), new SortingService(new ExpressionBuilder()));
            var query         = Persons.AsQueryable();

            query = filterService.AppendQueryWithContains <Person>("PhoneNr", "12345", query, vm.AsSortingFilterModel);
            Assert.IsTrue(query.Count() == 4);
        }