Beispiel #1
0
 public FinancialService(IFinancialDataSource service)
 {
     _categoryRepository    = new BaseRepository <Category, CategoryEntity>(service.CategoryService);
     _walletRepository      = new BaseRepository <Wallet, WalletEntity>(service.WalletService);
     _incomeRepository      = new BaseRepository <Income, IncomeEntity>(service.IncomeService);
     _transactionRepository = new BaseRepository <Transaction, TransactionEntity>(service.TransactionService);
 }
        public DataSourceDispatcher(
            IStockDataDataSource assetDataDataSource, IPricesDataSource pricesDataSouce, IOptionChainDataSource optionChainDataSource,
            IFinancialDataSource financialDataSource, IRiskFreeRatesDataSource riskFreeRatesDataSource,
            IAssetTypeDataSource assetTypeDataSource, IStatisticsDataSource statisticsDataSource, IIndexesDataSource indexesDataSource,
            ICacheManager cacheManager)
        {
            //TODO: Implementar un data source builder para poder elegir. Por ejemplo: se puede usar Yahoo, Nasdaq y Reuters para traer los balances
            //

            this.assetDataDataSource     = assetDataDataSource;
            this.pricesDataSouce         = pricesDataSouce;
            this.optionChainDataSource   = optionChainDataSource;
            this.financialDataSource     = financialDataSource;
            this.riskFreeRatesDataSource = riskFreeRatesDataSource;
            this.assetTypeDataSource     = assetTypeDataSource;
            this.statisticsDataSource    = statisticsDataSource;
            this.indexesDataSource       = indexesDataSource;
            this.cacheManager            = cacheManager;
        }
 public ServicesService(IFinancialDataSource service)
 {
     _priceRepository  = new BaseRepository <Price, PriceEntity>(service.PriceService);
     _recordRepository = new BaseRepository <Record, RecordEntity>(service.RecordService);
     _tarifRepository  = new BaseRepository <Tarif, TarifEntity>(service.TarifService);
 }