public Skill GetByName(string name) { var skillAccess = new SkillsAccess(); var skillDB = skillAccess.GetByName(name); return(DBToLogic(skillDB)); }
public void GetByIDTest() { var skillExpected = skillsAccess.GetByName("Triangle"); var skillActual = skillsAccess.GetByID(skillExpected.ID); Assert.AreEqual(skillExpected.Name, skillActual.Name); skillActual = skillsAccess.GetByID(-5); Assert.IsNull(skillActual); }