Beispiel #1
0
        public VoteController(ISessionProvider<AefSession> sessionProvider,
            IVoteManager voteManager,
            IVotingManager votingManager,
            IVoteOptionManager voteOptionManager)
            : base(sessionProvider)
        {
            if (voteManager == null) throw new ArgumentException(nameof(voteManager));
            if (votingManager == null) throw new ArgumentException(nameof(votingManager));
            if (voteOptionManager == null) throw new ArgumentException(nameof(voteOptionManager)); 

            m_VoteManager = voteManager;
            m_VotingManger = votingManager;
        }
Beispiel #2
0
        public VoteController(ISessionScopeFactory sessionScopeFactory,
            IVoteManager voteManager,
            IVotingManager votingManager,
            IVoteOptionManager voteOptionManager)
            : base(sessionScopeFactory)
        {
            if (voteManager == null) throw new ArgumentException(nameof(voteManager));
            if (votingManager == null) throw new ArgumentException(nameof(votingManager));
            if (voteOptionManager == null) throw new ArgumentException(nameof(voteOptionManager)); 

            m_VoteManager = voteManager;
            m_VotingManger = votingManager;
        }