Exemple #1
0
        public static Participant In(EstimationRound round, string name = "anonymous")
        {
            var participant = new Participant(name);

            participant.Participate(round);
            return(participant);
        }
Exemple #2
0
        public void Enroll(Participant participant)
        {
            if (!HasActiveRound)
            {
                StartNewRound(participant);
                return;
            }

            if (_activeRound.Status.IsCompleted)
            {
                var newRoundParticipants = _activeRound.Partipants.Union(new[] {participant}).ToArray();
                StartNewRound(newRoundParticipants);
            } else
            {
                participant.Participate(_activeRound);
            }
        }
Exemple #3
0
        public void Enroll(Participant participant)
        {
            if (!HasActiveRound)
            {
                StartNewRound(participant);
                return;
            }

            if (_activeRound.Status.IsCompleted)
            {
                var newRoundParticipants = _activeRound.Partipants.Union(new[] { participant }).ToArray();
                StartNewRound(newRoundParticipants);
            }
            else
            {
                participant.Participate(_activeRound);
            }
        }
Exemple #4
0
 public static Participant In(EstimationRound round, string name = "anonymous")
 {
     var participant = new Participant(name);
     participant.Participate(round);
     return participant;
 }