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;
        }
Esempio n. 2
0
 public StockExchangeDataProvider(IStockExchangeDbRepository stockExchangeDbRepository)
 {
     this.stockExchangeDbRepository = stockExchangeDbRepository;
 }