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); }
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); }