public StockData GetData(string name) { var p = _stockFeed.GetStockPrice(name); return(new StockData() { Name = name, Price = p }); }
public int GetMsftStockPrice(IStockFeed feed) { return(feed.GetStockPrice("msft")); }