public void GoogleGetPrices() { PriceValueRepo _repo = new PriceValueRepo(); GooglePriceEngine engine = new GooglePriceEngine(); List <PriceValue> prices = engine.GetPrices(new string[] { "AXP", "MSFT" }); Assert.AreEqual(2, prices.Count); }
public Valuator(IPriceEngine priceEngine) { _portfolioRepo = new PortfolioRepo(_db); _priceValueRepo = new PriceValueRepo(_db); _valuationRepo = new ValuationRepo(_db); _valuationDetailRepo = new ValuationDetailRepo(_db); _priceEngine = priceEngine; }