Exemple #1
0
        public ReportBuilder(IEnumerable<Respondent> allRespondents)
        {
            _respondentData = new RespondentData(allRespondents);
            _respondentFieldFunctions = new Func<IEnumerable<Respondent>, IEnumerable<GroupData>>[]
                                            {
                                                _respondentData.ByAge,
                                                _respondentData.ByCompareResultsWithOthersWeight,
                                                _respondentData.ByFetchDataFromWatchWeight,
                                                _respondentData.ByGoal,
                                                _respondentData.ByInterestInAnyTrainingTool,
                                                _respondentData.ByMonthlyPayment,
                                                _respondentData.ByNumberOfRunsPerWeek,
                                                _respondentData.ByNumberOfYearsRunning,
                                                _respondentData.ByRegisterRunDataWeight,
                                                _respondentData.ByRegisterShoeDataWeight,
                                                _respondentData.ByRunCalendarWeight,
                                                _respondentData.ByStatisticsBestRunsWeight,
                                                _respondentData.ByTrainerWeight,
                                                _respondentData.ByUseOfAnyTrainingTool,
                                                _respondentData.ByVisualWeightlossWeight
                                            };

            ResolvePaymentSegments();
        }
Exemple #2
0
 public void SaveDeterminedAthletes()
 {
     var data = new RespondentData(LoadRespondentsFromFile());
     SaveRespondentsToFile("DeterminedAthletes.csv", data.DeterminedAthletes);
 }