Exemplo n.º 1
0
        public IEnumerable <Stock> GetStocks(DateTime today)
        {
            UpMaPriceBuyFilter upRule = new UpMaPriceBuyFilter();
            var ups   = upRule.Filter(GetStocks("3"), today);
            var ups2  = upRule.Filter(GetStocks("2"), today);
            var upAll = ups.Concat(ups2);

            return(upAll);
        }
Exemplo n.º 2
0
        public IEnumerable <Stock> GetStocks()
        {
            IFilterRule upRule = new UpMaPriceBuyFilter();
            var         ups    = upRule.Filter(GetStocks("3"));
            var         ups2   = upRule.Filter(GetStocks("2"));
            var         upAll  = ups.Concat(ups2);

            return(upAll);
        }