private void InitializeFactProviderWithCalculators() { _factProvider = new MultipleTrackersFactProvider(); _calculators = CreateCalculators(); foreach (var calculator in _calculators) { _factProvider.Add(calculator); } }
public StatisticGenerator(IMultipleFactsRepository multipleFactsRepository, IMultipleTrackersFactProvider generalFactProvider, ISingleTrackerFactProvider specificFactProvider, ISingleFactsRepository singleFactsRepository, ITrackerRepository trackerRepository, IEventRepository eventRepository) { _multipleFactsRepository = multipleFactsRepository; _generalFactProvider = generalFactProvider; _specificFactProvider = specificFactProvider; _singleFactsRepository = singleFactsRepository; _trackerRepository = trackerRepository; _eventRepository = eventRepository; }