public static Participant In(EstimationRound round, string name = "anonymous") { var participant = new Participant(name); participant.Participate(round); return(participant); }
public void Participate(EstimationRound round) { if (_participatingRound != null) _participatingRound.Remove(this); _participatingRound = round; _participatingRound.Join(this); }
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); }
public void Participate(EstimationRound round) { if (_participatingRound != null) { _participatingRound.Remove(this); } _participatingRound = round; _participatingRound.Join(this); }
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); } }
public static Participant In(EstimationRound round, string name = "anonymous") { var participant = new Participant(name); participant.Participate(round); return participant; }