Ejemplo n.º 1
0
 internal void Create()
 {
     if (ActiveVoting != null)
     {
         throw new Exception("Активное голосование уже существует.");
     }
     ActiveVoting = new ActiveVoting();
 }
Ejemplo n.º 2
0
 internal void Close()
 {
     _votingHistoryService.Close(new ClosedVoting(ActiveVoting.StartDate, ActiveVoting.EndDate, ActiveVoting.VoteMap));
     ActiveVoting = null;
 }
Ejemplo n.º 3
0
 public VotingEventArgs(ActiveVoting activeVoting)
 {
     ActiveVoting = activeVoting ?? throw new ArgumentNullException();
 }