public void ConditionalTests()
        {
            var _queryRepository = new EntityFrameworkQueryRepository(new FamilyDbContext());

            var ss = new TextSearchSpecificationStrategy <Person>(
                "a",
                p => p.FirstName);

            var count_ = _queryRepository.GetEntities <Person>(ss).Count();

            var rowCountCallback = default(Func <int>);
            var results          = _queryRepository.GetEntities <Person>(
                ss,
                //                new ConditionalQueryStrategy(true, // Removed as causes stack overflow when using PagingQueryStrat
                new OrderByQueryStrategy("FirstName"),
                new PagingQueryStrategy(0, 2, out rowCountCallback).OnCondition(true));

            //            var rowCount2 = rowCountCallback();
            var rowCount = results.Count();
            var XX       = results.ToArray();
        }
        public void ConditionalTests()
        {
            var _queryRepository = new EntityFrameworkQueryRepository(new FamilyDbContext());

            var ss = new TextSearchSpecificationStrategy<Person>(
                    "a",
                    p => p.FirstName);

            var count_ = _queryRepository.GetEntities<Person>(ss).Count();

            var rowCountCallback = default(Func<int>);
            var results = _queryRepository.GetEntities<Person>(
                ss,
                //                new ConditionalQueryStrategy(true, // Removed as causes stack overflow when using PagingQueryStrat
                new OrderByQueryStrategy("FirstName"),
                new PagingQueryStrategy(0, 2, out rowCountCallback).OnCondition(true));

            //            var rowCount2 = rowCountCallback();
            var rowCount = results.Count();
            var XX = results.ToArray();

        }