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