Exemplo n.º 1
0
        public ResultsModel(Election election = null, IStatusUpdateHub hub = null)
        {
            _election = election ?? UserSession.CurrentElection;

            _analyzer = CurrentElection.IsSingleNameElection
        ? new ElectionAnalyzerSingleName(CurrentElection, hub) as IElectionAnalyzer
        : new ElectionAnalyzerNormal(CurrentElection, hub);
        }
Exemplo n.º 2
0
        public ResultsModel(Election election = null)
        {
            _election = election;

            _analyzer = CurrentElection.IsSingleNameElection
                            ? new ElectionAnalyzerSingleName(election) as IElectionAnalyzer
                            : new ElectionAnalyzerNormal(election);
        }