Ejemplo n.º 1
0
        public void select_data_source_url_with_source_type_and_a_query()
        {
            var targetGrid = new TargetGrid();

            targetGrid.SourceIs <QueryGoodSource>();

            targetGrid.DetermineRunnerType().ShouldEqual(typeof(GridRunner <GridDefTarget, TargetGrid, QueryGoodSource, DifferentClass>));
        }
Ejemplo n.º 2
0
        public void select_data_source_url_with_source_type_and_no_query()
        {
            var targetGrid = new TargetGrid();

            targetGrid.SourceIs <SimpleGoodSource>();

            targetGrid.DetermineRunnerType().ShouldEqual(typeof(GridRunner <GridDefTarget, TargetGrid, SimpleGoodSource>));
        }