internal StockExhangeServiceManager(IStockExchangeDataProvider stockExchangeDataProvider, IStockExchangeDbRepository stockExchangeDbRepository) { // dbConnectionString = @"Data Source=.\SQLExpress;Initial Catalog=StockExchangeDb; Trusted_Connection=True;"; // stockExchangeDbRepository = new StockExchangeDbRepository(dbConnectionString); // stockExchangeDataProvider = new StockExchangeDataProvider(stockExchangeDbRepository); this.stockExchangeDbRepository = stockExchangeDbRepository; this.stockExchangeDataProvider = stockExchangeDataProvider; }
public StockExchangeDataProvider(IStockExchangeDbRepository stockExchangeDbRepository) { this.stockExchangeDbRepository = stockExchangeDbRepository; }