public static Participant In(EstimationRound round, string name = "anonymous") { var participant = new Participant(name); participant.Participate(round); return(participant); }
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); } }
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); } }
public static Participant In(EstimationRound round, string name = "anonymous") { var participant = new Participant(name); participant.Participate(round); return participant; }