예제 #1
0
        public UnitOfWork(ITimeIntervalRepository timeIntervals, IBrokerTimeIntervalRepository brokerTimeIntervals, IBrokerRepository brokers, IInstrumentNameRepository instrumentNames, IBrokerInstrumentRepository brokerInstruments, IPriceEntryRepository priceEntries, IScreenerEntryMappingRepository screenerEntryMappings, IScreenerEntryTypeRepository screenerEntryTypes, IBrokerInstrumentScreenerTypeRepository brokerInstrumentScreenerTypes, IScreenerTypeRepository screenerTypes, IBrokerSymbolRepository brokerSymbols, ICurrencyRepository currencies, IExchangeRepository exchanges, IInstrumentTypeRepository instrumentTypes, IScreenerRepository screeners, IScreenerLineRepository screenerLines, IScreenerReferenceImageRepository screenerReferenceImages, IScreenerEntryRepository screenerEntries, IIndicatorEntryRepository indicatorEntries, ITradeRepository trades, ITradeStepRepository tradeSteps, IOrderRepository orders, ISignalRepository signals, ISignalStepRepository signalSteps, IStopLossRuleRepository stopLossRules, IExitRuleRepository exitRules)
        {
            this.TimeIntervals = timeIntervals;
            this.BrokerTimeIntervals = brokerTimeIntervals;
            this.Brokers = brokers;
            this.InstrumentNames = instrumentNames;
            this.BrokerInstruments = brokerInstruments;
            this.PriceEntries = priceEntries;
            this.ScreenerEntryMappings = screenerEntryMappings;
            this.ScreenerEntryTypes = screenerEntryTypes;
            this.BrokerInstrumentScreenerTypes = brokerInstrumentScreenerTypes;
            this.ScreenerTypes = screenerTypes;
            this.BrokerSymbols = brokerSymbols;
            this.Currencies = currencies;
            this.Exchanges = exchanges;
            this.InstrumentTypes = instrumentTypes;
            this.Screeners = screeners;
            this.ScreenerLines = screenerLines;
            this.ScreenerReferenceImages = screenerReferenceImages;
            this.ScreenerEntries = screenerEntries;
            this.IndicatorEntries = indicatorEntries;
            this.Trades = trades;
            this.TradeSteps = tradeSteps;
            this.Orders = orders;
            this.Signals = signals;
            this.SignalSteps = signalSteps;
            this.StopLossRules = stopLossRules;
            this.ExitRules = exitRules;

        }
예제 #2
0
 public MovieService(IMovieRepository movieRepository, ITheaterRepository theaterRepository,
     IGenreRepository genreRepository, ITimeIntervalRepository timeIntervalRepository)
 {
     _movieRepository = movieRepository;
     _theaterRepository = theaterRepository;
     _genreRepository = genreRepository;
     _timeIntervalRepository = timeIntervalRepository;
 }