Пример #1
0
        public static Participant In(EstimationRound round, string name = "anonymous")
        {
            var participant = new Participant(name);

            participant.Participate(round);
            return(participant);
        }
Пример #2
0
        public void Participate(EstimationRound round)
        {
            if (_participatingRound != null)
                _participatingRound.Remove(this);

            _participatingRound = round;
            _participatingRound.Join(this);
        }
Пример #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);
        }
Пример #4
0
        public void Participate(EstimationRound round)
        {
            if (_participatingRound != null)
            {
                _participatingRound.Remove(this);
            }

            _participatingRound = round;
            _participatingRound.Join(this);
        }
Пример #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);
            }
        }
Пример #6
0
 public static Participant In(EstimationRound round, string name = "anonymous")
 {
     var participant = new Participant(name);
     participant.Participate(round);
     return participant;
 }