Beispiel #1
0
        public void GridPager_SetsProcessorTypeAsPostProcessor()
        {
            GridProcessorType actual   = new GridPager <GridModel>(grid).ProcessorType;
            GridProcessorType expected = GridProcessorType.Post;

            Assert.Equal(expected, actual);
        }
Beispiel #2
0
        public void BaseGridFilter_SetsProcessorTypeAsPreProcessor()
        {
            GridProcessorType actual   = Substitute.For <BaseGridFilter <GridModel> >().ProcessorType;
            GridProcessorType expected = GridProcessorType.Pre;

            Assert.AreEqual(expected, actual);
        }
Beispiel #3
0
        public void GridColumn_SetsProcessorTypeAsPreProcessor()
        {
            GridProcessorType actual   = new GridColumn <GridModel, Object>(grid, model => model.Name).ProcessorType;
            GridProcessorType expected = GridProcessorType.Pre;

            Assert.Equal(expected, actual);
        }
        public void GridColumn_SetsPreProcessorType()
        {
            GridProcessorType actual   = new GridColumn <GridModel, Object>(column.Grid, _ => 0).ProcessorType;
            GridProcessorType expected = GridProcessorType.Pre;

            Assert.Equal(expected, actual);
        }
        public void GridSort_SetsProcessorType()
        {
            GridProcessorType expected = new GridSort <GridModel>(sort.Grid).ProcessorType;
            GridProcessorType actual   = GridProcessorType.Pre;

            Assert.Equal(expected, actual);
        }
Beispiel #6
0
 public GridPager(IGrid <T> grid)
 {
     Grid            = grid;
     InitialPage     = 1;
     RowsPerPage     = 20;
     PagesToDisplay  = 5;
     PartialViewName = "MvcGrid/_Pager";
     ProcessorType   = GridProcessorType.Post;
 }
Beispiel #7
0
 public NotWorkingPersonFilter()
 {
     ProcessorType = GridProcessorType.Pre;
 }
 public ShortNameProcessor()
 {
     ProcessorType = GridProcessorType.Post;
 }
Beispiel #9
0
 public TestProc()
 {
     ProcessorType = GridProcessorType.Manual;
     // Executed on all the data, mainly for filtering/sorting in a custom way
 }
Beispiel #10
0
 public ShortNameProcessor()
 {
     ProcessorType = GridProcessorType.Pre;
     // Executed before data is filtered and sorted, for low memory footprint of signature strings
 }