Exemplo n.º 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();
 }
 public void StartUp()
 {
     _stockSearch  = new StockInformation();
     _stockService = new StockService(_stockSearch);
 }
Exemplo n.º 3
0
 /// <summary>
 ///     ctor, to be used with a DI container
 /// </summary>
 /// <param name="stockSearch"></param>
 public StockService(IStockInformation stockSearch)
 {
     _stockSearch = stockSearch;
 }