/// <summary> /// Default ctor /// </summary> public StockService() { //TODO: get rid of this and put inplace the mechanism for selecting the datasource _stockSearch = new StockInformation(); }
public void StartUp() { _stockSearch = new StockInformation(); _stockService = new StockService(_stockSearch); }
/// <summary> /// ctor, to be used with a DI container /// </summary> /// <param name="stockSearch"></param> public StockService(IStockInformation stockSearch) { _stockSearch = stockSearch; }