public DefaultVotingService(
     IRepository<VoteRecord> voteRepository,
     IRepository<ResultRecord> resultRepository,
     IClock clock,
     IFunctionCalculator calculator,
     IEnumerable<IFunction> functions,
     IVotingEventHandler eventHandler,
     ICacheManager cacheManager,
     ISignals signals) {
     _voteRepository = voteRepository;
     _resultRepository = resultRepository;
     _clock = clock;
     _calculator = calculator;
     _functions = functions;
     _eventHandler = eventHandler;
     _cacheManager = cacheManager;
     _signals = signals;
 }
Beispiel #2
0
 public DefaultVotingService(
     IRepository <VoteRecord> voteRepository,
     IRepository <ResultRecord> resultRepository,
     IClock clock,
     IFunctionCalculator calculator,
     IEnumerable <IFunction> functions,
     IVotingEventHandler eventHandler,
     ICacheManager cacheManager,
     ISignals signals)
 {
     _voteRepository   = voteRepository;
     _resultRepository = resultRepository;
     _clock            = clock;
     _calculator       = calculator;
     _functions        = functions;
     _eventHandler     = eventHandler;
     _cacheManager     = cacheManager;
     _signals          = signals;
 }