Example #1
0
        public static IFilter Create(MootaDootaDefinishin md)
        {
            List <IFilter> mdFilters = new List <IFilter>();

            mdFilters.Add(KwestionaireModelFilterInfo.MagicFilter(md.MagicNumber));

            mdFilters.Add(KwestionaireModelFilterInfo.DangerFilter(md.DangerNumber));

            return(new MootaDootaFilterCollection(mdFilters));
        }
        public static IFilter Create(MootaDootaDefinishin md)
        {
            List <IFilter> metadataFilters = new List <IFilter>()
            {
                MetadataFilterInfo.Create <int>(n => n == 1, "Section 1")
            };

            metadataFilters.Add(KwestionaireModelFilterInfo.MagicFilter(md.MagicNumber));

            metadataFilters.Add(KwestionaireModelFilterInfo.DangerFilter(md.DangerNumber));

            return(new MootaDootaFilterCollection(metadataFilters));
        }