コード例 #1
0
 private void InitializeFactProviderWithCalculators()
 {
     _factProvider = new MultipleTrackersFactProvider();
     _calculators  = CreateCalculators();
     foreach (var calculator in _calculators)
     {
         _factProvider.Add(calculator);
     }
 }
コード例 #2
0
 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;
 }