예제 #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);
        }
예제 #2
0
        public ResultsModel(Election election = null)
        {
            _election = election;

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