private static List <IntervalWorkoutConfig> BuildThibaultInterval(List <ThibaultModelItem> list)
        {
            List <ThibaultModelGuideline> thibaultGuidelines     = IntervalCalculations.GetThibaultGuidelines();
            List <IntervalWorkoutConfig>  intervalWorkoutConfigs = new List <IntervalWorkoutConfig>();

            foreach (ThibaultModelItem thibaultModelItem in list)
            {
                if ((thibaultModelItem.TotalReps <= 24 ? false : thibaultModelItem.TotalReps <= 30))
                {
                    ThibaultModelGuideline thibaultModelGuideline = thibaultGuidelines.First <ThibaultModelGuideline>((ThibaultModelGuideline x) => x.NumSets == 4);
                    intervalWorkoutConfigs.Add(IntervalCalculations.ConfigureThibaultWorkout(thibaultModelGuideline, thibaultModelItem, thibaultModelItem.MaxAerobicPower));
                }
                else if ((thibaultModelItem.TotalReps <= 14 ? false : thibaultModelItem.TotalReps <= 24))
                {
                    ThibaultModelGuideline thibaultModelGuideline1 = thibaultGuidelines.First <ThibaultModelGuideline>((ThibaultModelGuideline x) => x.NumSets == 3);
                    intervalWorkoutConfigs.Add(IntervalCalculations.ConfigureThibaultWorkout(thibaultModelGuideline1, thibaultModelItem, thibaultModelItem.MaxAerobicPower));
                }
                else if ((thibaultModelItem.TotalReps <= 7 ? false : thibaultModelItem.TotalReps <= 14))
                {
                    ThibaultModelGuideline thibaultModelGuideline2 = thibaultGuidelines.First <ThibaultModelGuideline>((ThibaultModelGuideline x) => x.NumSets == 2);
                    intervalWorkoutConfigs.Add(IntervalCalculations.ConfigureThibaultWorkout(thibaultModelGuideline2, thibaultModelItem, thibaultModelItem.MaxAerobicPower));
                }
                else if ((thibaultModelItem.TotalReps < 3 ? false : thibaultModelItem.TotalReps <= 7))
                {
                    ThibaultModelGuideline thibaultModelGuideline3 = thibaultGuidelines.First <ThibaultModelGuideline>((ThibaultModelGuideline x) => x.NumSets == 1);
                    intervalWorkoutConfigs.Add(IntervalCalculations.ConfigureThibaultWorkout(thibaultModelGuideline3, thibaultModelItem, thibaultModelItem.MaxAerobicPower));
                }
            }
            return(intervalWorkoutConfigs);
        }
        public static List <IntervalWorkoutConfig> CreateThibaultIntervalWorkoutByDuration(int intervalDuration)
        {
            List <IntervalWorkoutConfig> intervalWorkoutConfigs = new List <IntervalWorkoutConfig>();
            List <ThibaultModelItem>     thibaultModel          = IntervalCalculations.GetThibaultModel();
            List <ThibaultModelItem>     list = (
                from x in thibaultModel
                where x.Duration == intervalDuration
                select x).ToList <ThibaultModelItem>();

            return(IntervalCalculations.BuildThibaultInterval(list));
        }
        public static List <IntervalWorkoutConfig> CreateThibaultIntervalWorkoutByTotalReps(int totalReps)
        {
            List <IntervalWorkoutConfig> intervalWorkoutConfigs = new List <IntervalWorkoutConfig>();
            List <ThibaultModelItem>     thibaultModel          = IntervalCalculations.GetThibaultModel();
            List <ThibaultModelItem>     list = (
                from x in thibaultModel
                where x.TotalReps == totalReps
                select x).ToList <ThibaultModelItem>();

            return(IntervalCalculations.BuildThibaultInterval(list));
        }
        public static List <IntervalWorkoutConfig> CreateThibaultIntervalWorkout3(int maxAerobicPower, int totalReps)
        {
            List <IntervalWorkoutConfig> intervalWorkoutConfigs = new List <IntervalWorkoutConfig>();
            List <ThibaultModelItem>     thibaultModel          = IntervalCalculations.GetThibaultModel();
            List <ThibaultModelItem>     list = (
                from x in thibaultModel
                where (x.MaxAerobicPower != maxAerobicPower ? false : x.TotalReps == totalReps)
                select x).ToList <ThibaultModelItem>();

            return(IntervalCalculations.BuildThibaultInterval(list));
        }
        public static List <IntervalWorkoutConfig> CreateThibaultIntervalWorkoutByPercentageMAP(int maxAerobicPower)
        {
            List <IntervalWorkoutConfig> intervalWorkoutConfigs = new List <IntervalWorkoutConfig>();
            List <ThibaultModelItem>     thibaultModel          = IntervalCalculations.GetThibaultModel();
            List <ThibaultModelItem>     list = (
                from x in thibaultModel
                where x.MaxAerobicPower == maxAerobicPower
                select x).ToList <ThibaultModelItem>();

            return(IntervalCalculations.BuildThibaultInterval(list));
        }