Ejemplo n.º 1
0
        public void DoNotIncludeCompositeFilterTypes(Object type)
        {
            var dynamicFilter = new DynamicFilterExpression(StaticFilter);
            var friendlyNames = dynamicFilter.GetSupportedFilterNames((Type)type);

            Assert.Equal(0, friendlyNames.Intersect(CompositeFilterNames).Count());
        }
Ejemplo n.º 2
0
        private void PopulateFilters()
        {
            foreach (var filterName in filter.GetSupportedFilterNames(typeof(String)))
            {
                filterType.Items.Add(filterName);
            }

            foreach (var placeholder in filter.TextFilters.Where(placeholder => String.Compare(placeholder.Property, property, StringComparison.OrdinalIgnoreCase) == 0))
            {
                filters.Items.Add(placeholder);
            }
        }