Beispiel #1
0
        internal static void GenerateData(List <TrainSkill> list)
        {
            DahmerauLevenshteinAlg.Start(list);
            foreach (TrainSkill skill in list)
            {
                if (skill.TypeOfSkill == null)
                {
                    foreach (var similarSkill in skill.Skills)
                    {
                        if (similarSkill.TypeOfSkill != null)
                        {
                            skill.TypeOfSkill = similarSkill.TypeOfSkill;
                            break;
                        }
                    }
                }
            }
#if DEBUGX
            foreach (TrainSkill skill in list)
            {
                skill.PostProccessing();
                skill.ToString();
            }
#endif
        }
Beispiel #2
0
        public void TestMethod1()
        {
            TrainSkill MySQL1 = new TrainSkill {
                CodeOfSkill = "mysql", NameOfSkill = "MySQL"
            };
            TrainSkill MySQL2 = new TrainSkill {
                CodeOfSkill = "mysql", NameOfSkill = "MySQL"
            };
            TrainSkill MSSQL = new TrainSkill {
                CodeOfSkill = "mssql", NameOfSkill = "MS SQL"
            };
            TrainSkill SQL = new TrainSkill {
                CodeOfSkill = "sql", NameOfSkill = "SQL"
            };

            SQL.Skills.Add(MySQL2);
            List <TrainSkill> skills = new List <TrainSkill>();

            skills.AddRange(new List <TrainSkill> {
                SQL, MSSQL
            });
            DahmerauLevenshteinAlg.Start(skills);
        }