예제 #1
0
        public int Should_filter_by_isin_when_isin_only_is_set_in_string(string filterSearch)
        {
            var fastSearch = new FastSearch <OrderAdapter>();

            fastSearch.AddPredicate(filterSearch);
            return(orders.Count(s => fastSearch.Predicate(s)));
        }
예제 #2
0
        public int Should_filter_by_isin_when_isin_only_is_set(string isinCode)
        {
            var fastSearch = new FastSearch <OrderAdapter>();

            fastSearch.AddPredicate(o => o.Security.IsinCode == isinCode);
            return(orders.Count(s => fastSearch.Predicate(s)));
        }