Esempio n. 1
0
        public void LearnSkill(ProgrammersSkill skill)
        {
            if (skill.Name == "PHP" || skill.Name == "VB.NET")
            {
                throw new PleaseDontDoThisException($"Please don't force me to learn {skill.Name}");
            }

            if (_skills.ContainsKey(skill.Name))
            {
                _skills[skill.Name] = skill;
            }
            else
            {
                _skills.Add(skill.Name, skill);
            }
        }
Esempio n. 2
0
 public AspNetDeveloperBuilder AddSkill(ProgrammersSkill skill)
 {
     _webDeveloper.LearnSkill(skill);
     return(this);
 }