Exemplo n.º 1
0
        public void Setup()
        {
            serviceProvider = new ServiceCollection()
                              .AddPoorMansGridFilterService()
                              //.AddPoorMansGrid(PoorMansGridOptions.ForceCaseInsensitive) if you want to force the text queries to be case insensitive
                              .BuildServiceProvider();

            filterService = serviceProvider.GetService <IFilterService>();

            //Alternatively you can create a new instance of the FilterService directly without dependency injection
            //filterService = new FilterService();
            //filterService = new FilterService(PoorMansGridOptions.ForceCaseInsensitive);

            allItems = SampleDataFactory.GetSampleData();
        }
Exemplo n.º 2
0
 public void Setup()
 {
     filterService = new FilterService();
     allItems      = SampleDataFactory.GetSampleData();
 }