Example #1
0
 public VoteCommand(IRepository repository, VotingSystem votingSystem)
     : base(repository)
 {
     _votingSystem = votingSystem;
     _operations.Add(new StartVoteOperation(votingSystem));
     _operations.Add(new EndVoteOperation(votingSystem));
 }
Example #2
0
 public VoteCommand(IRepository repository, VotingSystem votingSystem, IAutomatedActionSystem automatedActionSystem)
     : base(repository)
 {
     _votingSystem          = votingSystem;
     _automatedActionSystem = automatedActionSystem;
     _operations.Add(new StartVoteOperation(votingSystem));
 }
 public EndVoteOperation(VotingSystem votingSystem)
 {
     _votingSystem = votingSystem;
 }
 public StartVoteOperation(VotingSystem votingSystem)
 {
     _votingSystem = votingSystem;
 }