public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            return(new List <LearnerTypeMutator>()
            {
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, InvalidLines = 2
                },
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.OtherYP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, InvalidLines = 2
                },
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.Adult, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, InvalidLines = 2
                },
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, InvalidLines = 2
                },
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.OtherAdult, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, InvalidLines = 2
                },
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.ESF, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, InvalidLines = 2
                },
//                new LearnerTypeMutator() { LearnerType = LearnerTypeRequired.NonFunded, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions },
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = MutateOLASS, DoMutateOptions = MutateGenerationOptionsOLASS, ExclusionRecord = true
                },
            });
        }
Example #2
0
        public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            _dataCache = cache;
            var result = new List <LearnerTypeMutator>();

            _extraFAMs = new Dictionary <LearnerFAMType, List <LearnerFAMCode> >();
            _extraFAMs.Add(LearnerFAMType.NLM, new List <LearnerFAMCode>()
            {
                LearnerFAMCode.NLM_ContractLevel, LearnerFAMCode.NLM_Merger
            });
            _extraFAMs.Add(LearnerFAMType.EDF, new List <LearnerFAMCode>()
            {
                LearnerFAMCode.EDF_EnglishNotGot, LearnerFAMCode.EDF_MathsNotGot
            });
            _extraFAMs.Add(LearnerFAMType.PPE, new List <LearnerFAMCode>()
            {
                LearnerFAMCode.PPE_AdoptedCare, LearnerFAMCode.PPE_ServiceChild
            });
            foreach (var v in _extraFAMs)
            {
                result.Add(new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, InvalidLines = 2
                });
            }

            return(result);
        }
Example #3
0
 public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
 {
     _dataCache = cache;
     //    AdvancedLevelApprenticeship = 2,
     //IntermediateLevelApprenticeship = 3,
     //HigherApprenticeshipLevel4 = 20,
     //HigherApprenticeshipLevel5 = 21,
     //HigherApprenticeshipLevel6 = 22,
     //HigherApprenticeshipLevel7 = 23,
     //Traineeship = 24,
     //ApprenticeshipStandard = 25
     return(new List <LearnerTypeMutator>()
     {
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, InvalidLines = 13
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptionsRestart, ExclusionRecord = true
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate19Standard, DoMutateOptions = MutateGenerationOptionsStandards, InvalidLines = 11, ExclusionRecord = true
         },
     });
 }
Example #4
0
 public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
 {
     _dataCache = cache;
     //    AdvancedLevelApprenticeship = 2,
     //IntermediateLevelApprenticeship = 3,
     //HigherApprenticeshipLevel4 = 20,
     //HigherApprenticeshipLevel5 = 21,
     //HigherApprenticeshipLevel6 = 22,
     //HigherApprenticeshipLevel7 = 23,
     //Traineeship = 24,
     //ApprenticeshipStandard = 25
     return(new List <LearnerTypeMutator>()
     {
         //new LearnerTypeMutator() { LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate19FM81, DoMutateOptions = MutateGenerationOptions },
         //new LearnerTypeMutator() { LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate19IntermediateLevelApprenticeshipFM81, DoMutateOptions = MutateGenerationOptions },
         //new LearnerTypeMutator() { LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate19HigherLevelApprenticeship4FM81, DoMutateOptions = MutateGenerationOptions },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate19HigherLevelApprenticeship5, DoMutateOptions = MutateGenerationOptionsHE, InvalidLines = 6
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate19HigherLevelApprenticeship6, DoMutateOptions = MutateGenerationOptionsHE, InvalidLines = 6
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate19HigherLevelApprenticeship6Restart, DoMutateOptions = MutateGenerationOptionsHE, ExclusionRecord = true, InvalidLines = 4
         }
     });
 }
 public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
 {
     _dataCache = cache;
     return(new List <LearnerTypeMutator>()
     {
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.OtherYP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = MutateAllComplete, DoMutateOptions = MutateGenerationOptionsProgression, ExclusionRecord = true
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.Adult, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, ExclusionRecord = true
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.OtherAdult, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, ExclusionRecord = true
         },
     });
 }
 public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
 {
     return(new List <LearnerTypeMutator>()
     {
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.CommunityLearning, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptionsCL
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.CommunityLearning, DoMutateLearner = MutateShortPlannedHours, DoMutateOptions = MutateGenerationOptionsCL, InvalidLines = 0, ExclusionRecord = true
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.NonFunded, DoMutateLearner = MutateShortPlannedHoursWithSOF, DoMutateOptions = MutateGenerationOptionsNF, InvalidLines = 0, ExclusionRecord = true
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.NonFunded, DoMutateLearner = MutateWithSOF, DoMutateOptions = MutateGenerationOptionsNF
         }
     });
 }
        public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            _dataCache = cache;
            var result = new List <LearnerTypeMutator>()
            {
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.OtherAdult, DoMutateLearner = Mutate19, DoMutateOptions = MutateGenerationOptions
                },
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate19Standard, DoMutateOptions = MutateGenerationOptions, ExclusionRecord = true, ValidLines = 1
                },
            };

            foreach (var v in _excludedLDMs)
            {
                result.Add(new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.OtherAdult, DoMutateLearner = Mutate19LDM, DoMutateOptions = MutateGenerationOptions, ExclusionRecord = v != LearnDelFAMCode.LDM_SteelRedundancy
                });
            }

            return(result);
        }
        public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            _lldd = new List <LLDDHealthProb>(30);
            var result = new List <LearnerTypeMutator>()
            {
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.Adult, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions
                },
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.CommunityLearning, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, ExclusionRecord = true
                },
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.NonFunded, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, ExclusionRecord = true
                },
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.Adult, DoMutateLearner = Mutate25, DoMutateOptions = MutateGenerationOptionsMultipleLD, ExclusionRecord = true
                },
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.Adult, DoMutateLearner = Mutate24WithLd3, DoMutateOptions = MutateGenerationOptionsMultipleLD
                },
            };

            return(result);
        }
        public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            _lldd = new List <LLDDCat>(30);
            var result = new List <LearnerTypeMutator>();

            foreach (var eth in Enum.GetValues(typeof(LLDDCat)))
            {
                _lldd.Add((LLDDCat)eth);
                result.Add(new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions
                });
            }

            for (int i = 0; i != 3; ++i)
            {
                result[i].DoMutateOptions = MutateGenerationOptionsStartDate;
            }

            result[0].LearnerType = LearnerTypeRequired.Adult;
            result[1].LearnerType = LearnerTypeRequired.OtherYP1619;

            result[3].LearnerType = LearnerTypeRequired.Apprenticeships;

            result[4].LearnerType     = LearnerTypeRequired.NonFunded;
            result[4].DoMutateOptions = MutateGenerationOptionsEmployment;

            result[5].LearnerType     = LearnerTypeRequired.CommunityLearning;
            result[5].DoMutateOptions = MutateGenerationOptionsSOF;

            return(result);
        }
Example #10
0
        public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            _dataCache = cache;
            _grade     = new Dictionary <string, string>();
            foreach (var g in _dataCache.GCSEGrades())
            {
                char c = g[0];
                c += (char)8;
                while (g.Contains(c.ToString()))
                {
                    ++c;
                }

                _grade.Add(g, c.ToString());
            }

            var result = new List <LearnerTypeMutator>();

            foreach (var g in _grade)
            {
                result.Add(new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions
                });
            }

            return(result);
        }
Example #11
0
 public IEnumerable<LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
 {
     return new List<LearnerTypeMutator>()
     {
         new LearnerTypeMutator() { LearnerType = LearnerTypeRequired.Adult, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, ValidLines = 1, InvalidLines = 2 },
         new LearnerTypeMutator() { LearnerType = LearnerTypeRequired.Adult, DoMutateLearner = Mutate115AndADay, DoMutateOptions = MutateGenerationOptions, ValidLines = 1, InvalidLines = 2 }
     };
 }
Example #12
0
 private void SetUpFunctorDataGrid()
 {
     _cache         = new DataCache();
     _rfp           = new RuleToFunctorParser(_cache);
     _functorCount  = 0;
     _totalLearners = 0;
     _rfp.CreateFunctors(AddFunctor);
     uiRuleData.Text = $"Discrete rules {uiParameters.Rows.Count} functors detected: {_functorCount} total learners: {_totalLearners}";
 }
 public IEnumerable<LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
 {
     _dataCache = cache;
     return new List<LearnerTypeMutator>()
     {
         new LearnerTypeMutator() { LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, InvalidLines = 2 },
         new LearnerTypeMutator() { LearnerType = LearnerTypeRequired.OtherYP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, InvalidLines = 2 },
     };
 }
        public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            var result = new List <LearnerTypeMutator>();

            result.Add(new LearnerTypeMutator()
            {
                LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions
            });
            return(result);
        }
 public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
 {
     return(new List <LearnerTypeMutator>()
     {
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = MutateRUI3, DoMutateOptions = MutateGenerationOptions
         }
     });
 }
Example #16
0
 public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
 {
     _dataCache = cache;
     return(new List <LearnerTypeMutator>()
     {
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.NonFunded, DoMutateLearner = Mutate16, DoMutateOptions = MutateGenerationOptions
         }
     });
 }
 public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
 {
     _dataCache = cache;
     return(new List <LearnerTypeMutator>()
     {
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.Adult, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, ValidLines = 3, InvalidLines = 4
         }
     });
 }
        public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            var result = new List <LearnerTypeMutator>();

            result.Add(new LearnerTypeMutator()
            {
                LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, InvalidLines = 2
            });

            return(result);
        }
        public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            _lldd = new List <LLDDHealthProb>(30);
            var result = new List <LearnerTypeMutator>()
            {
                new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions
                }
            };

            return(result);
        }
        public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            _cache  = cache;
            _attain = new List <PriorAttainWithAppProgTypeAim>()
            {
                new PriorAttainWithAppProgTypeAim()
                {
                    Attain = PriorAttain.OldLevel4, PTA = _cache.ApprenticeshipAims(ProgType.Traineeship).First()
                },
                new PriorAttainWithAppProgTypeAim()
                {
                    Attain = PriorAttain.OldLevel5, PTA = _cache.ApprenticeshipAims(ProgType.Traineeship).First()
                },
                new PriorAttainWithAppProgTypeAim()
                {
                    Attain = PriorAttain.Level4, PTA = _cache.ApprenticeshipAims(ProgType.Traineeship).First()
                },
                new PriorAttainWithAppProgTypeAim()
                {
                    Attain = PriorAttain.Level5, PTA = _cache.ApprenticeshipAims(ProgType.Traineeship).First()
                },
                new PriorAttainWithAppProgTypeAim()
                {
                    Attain = PriorAttain.Level6, PTA = _cache.ApprenticeshipAims(ProgType.Traineeship).First()
                },
                new PriorAttainWithAppProgTypeAim()
                {
                    Attain = PriorAttain.Level7, PTA = _cache.ApprenticeshipAims(ProgType.Traineeship).First()
                },
                new PriorAttainWithAppProgTypeAim()
                {
                    Attain = PriorAttain.OtherNotKnown, PTA = _cache.ApprenticeshipAims(ProgType.Traineeship).First()
                },
                new PriorAttainWithAppProgTypeAim()
                {
                    Attain = PriorAttain.NotKnown, PTA = _cache.ApprenticeshipAims(ProgType.Traineeship).First()
                },
            };

            var result = new List <LearnerTypeMutator>();

            foreach (var v in _attain)
            {
                result.Add(new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, DoMutateProgression = MutateProgression
                });
            }

            return(result);
        }
Example #21
0
 public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
 {
     return(new List <LearnerTypeMutator>()
     {
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.CommunityLearning, DoMutateLearner = Mutate4AndADay, DoMutateOptions = MutateGenerationOptionsCL
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.NonFunded, DoMutateLearner = Mutate4AndADay, DoMutateOptions = MutateGenerationOptions
         }
     });
 }
Example #22
0
 public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
 {
     return(new List <LearnerTypeMutator>()
     {
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.NonFunded, DoMutateLearner = MutateHEFCE, DoMutateOptions = MutateGenerationOptionsHEFCE
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.NonFunded, DoMutateLearner = MutateHEFCEOLASS, DoMutateOptions = MutateGenerationOptionsHEFCE, ValidLines = 1, ExclusionRecord = true
         }
     });
 }
Example #23
0
 public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
 {
     return(new List <LearnerTypeMutator>()
     {
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptionsFullyFundedApprenticeships
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.Apprenticeships, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions
         }
     });
 }
 public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
 {
     return(new List <LearnerTypeMutator>()
     {
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.Adult, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.Adult, DoMutateLearner = Mutate100AndADay, DoMutateOptions = MutateGenerationOptions
         }
     });
 }
 public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
 {
     _dataCache = cache;
     return(new List <LearnerTypeMutator>()
     {
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.NonFunded, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions, InvalidLines = 2
         },
         new LearnerTypeMutator()
         {
             LearnerType = LearnerTypeRequired.NonFunded, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptionsOLASS, ExclusionRecord = true
         }
     });
 }
        public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            _lldd = cache.LLDDCatValidity().ToList();
            var result = new List <LearnerTypeMutator>();

            foreach (var eth in _lldd)
            {
                result.Add(new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptionsStartDate
                });
            }

            return(result);
        }
Example #27
0
        public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            _invalidNi = InvalidNINumber();
            var result = new List <LearnerTypeMutator>();

            for (int i = 0; i != _invalidNi.Count; ++i)
            {
                result.Add(new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions
                });
            }

            return(result);
        }
Example #28
0
        public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            _lldd = new List <LLDDHealthProb>(30);
            var result = new List <LearnerTypeMutator>();

            foreach (var eth in Enum.GetValues(typeof(LLDDHealthProb)))
            {
                _lldd.Add((LLDDHealthProb)eth);
                result.Add(new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions
                });
            }

            return(result);
        }
Example #29
0
        public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            _ethnicity = new List <Ethnicity>(30);
            var result = new List <LearnerTypeMutator>();

            foreach (var eth in Enum.GetValues(typeof(Ethnicity)))
            {
                _ethnicity.Add((Ethnicity)eth);
                result.Add(new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.YP1619, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions
                });
            }

            return(result);
        }
Example #30
0
        public IEnumerable <LearnerTypeMutator> LearnerMutators(ILearnerCreatorDataCache cache)
        {
            _accomodation = new List <Accomodation>(30);
            var result = new List <LearnerTypeMutator>();

            foreach (var eth in Enum.GetValues(typeof(Accomodation)))
            {
                _accomodation.Add((Accomodation)eth);
                result.Add(new LearnerTypeMutator()
                {
                    LearnerType = LearnerTypeRequired.Adult, DoMutateLearner = Mutate, DoMutateOptions = MutateGenerationOptions
                });
            }

            return(result);
        }