public void run_with_no_query()
        {
            var runner = new GridRunner <Foo, FooGrid, FooSource>(new FooGrid(), new FooSource());
            var dicts  = runner.Run();

            dicts.Select(x => x["name"]).ShouldHaveTheSameElementsAs("Scooby", "Shaggy", "Velma");
        }
        public void run_with_no_query()
        {
            var runner = new GridRunner <Foo, FooGrid, FooSource>(new FooGrid(), new FooSource(), new ProjectionRunner <Foo>(new ProjectionRunner(new InMemoryServiceLocator())), new StubFieldAccessService());
            var result = runner.Run()["data"];
            var dicts  = result.As <IDictionary <string, object>[]>();

            dicts.Select(x => x["name"]).ShouldHaveTheSameElementsAs("Scooby", "Shaggy", "Velma");
        }
        public void run_with_query()
        {
            var runner = new GridRunner <Foo, FooGrid, FancyFooSource, FooQuery>(new FooGrid(), new FancyFooSource());
            var dicts  = runner.Run(new FooQuery {
                Letter = "S"
            });

            dicts.Select(x => x["name"]).ShouldHaveTheSameElementsAs("Scooby", "Shaggy");
        }