Beispiel #1
0
        public void StartNextVoting()
        {
            AssertNotFinishedVoting();
            _topics = _topics.Concat(_votingPair.GetWinners()).ToArray();

            if (_topics.Count() == 1)
            {
                RaiseEvent(new VotingFinishedEvent(Id, _topics.Single()));
            }
            else
            {
                RaiseEvent(new VotingStartedEvent(Id, _topics.Skip(2).ToArray(), VotingPair.Create(_topics.Take(2).ToArray())));
            }
        }