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