示例#1
0
        public void PerformSurvey(int numberOfRespondents)
        {
            int respondentsConsenting = 0;

            respondents = new List <SurveyResponse>();
            while (respondentsConsenting < numberOfRespondents)
            {
                var respondent = SurveyResponse.GetRandomId();
                if (respondent.AnswerSurvey(surveyQuestions))
                {
                    respondentsConsenting++;
                }
                respondents.Add(respondent);
            }
        }