public void GetTest() { var skills = skillsAccess.Get(); Assert.AreEqual(2, skills.Count); Assert.AreEqual("Triangle", skills[0].Name); Assert.AreEqual("Vocalist", skills[1].Name); }
public List <Skill> Get() { var skillAccess = new SkillsAccess(); var skillsDB = skillAccess.Get(); var skill = new List <Skill>(); skillsDB.ForEach(s => skill.Add(DBToLogic(s))); return(skill); }