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

            participant.Participate(round);
            return(participant);
        }
Beispiel #2
0
        public void Participate(EstimationRound round)
        {
            if (_participatingRound != null)
                _participatingRound.Remove(this);

            _participatingRound = round;
            _participatingRound.Join(this);
        }
Beispiel #3
0
        private void StartNewRound(IEnumerable<Participant> participants)
        {
            if (HasActiveRound && !ActiveRound.Status.IsCompleted)
                throw new ActiveRoundNotCompletedException();

            _activeRound = new EstimationRound();
            foreach (var participant in participants)
                participant.Participate(_activeRound);
        }
Beispiel #4
0
        public void Participate(EstimationRound round)
        {
            if (_participatingRound != null)
            {
                _participatingRound.Remove(this);
            }

            _participatingRound = round;
            _participatingRound.Join(this);
        }
Beispiel #5
0
        private void StartNewRound(IEnumerable <Participant> participants)
        {
            if (HasActiveRound && !ActiveRound.Status.IsCompleted)
            {
                throw new ActiveRoundNotCompletedException();
            }

            _activeRound = new EstimationRound();
            foreach (var participant in participants)
            {
                participant.Participate(_activeRound);
            }
        }
Beispiel #6
0
 public static Participant In(EstimationRound round, string name = "anonymous")
 {
     var participant = new Participant(name);
     participant.Participate(round);
     return participant;
 }