public void NinjaWithExperience(Table table) { string beltLevel = table.Rows.Select(r => r["belt_level"]).FirstOrDefault(); BeltLevel beltLevelEnum; Enum.TryParse(beltLevel, true, out beltLevelEnum); ninja = new Ninja( beltLevelEnum); }
public void TheNinjaHasABlackBelt(String level) { ninja = new Ninja(level); }
public void NinjaWithExperience(Table table) { List<Dictionary<string, string>> hashes = table.Hashes(); Dictionary<String, String> ninjaProperties = hashes[0]; ninja = new Ninja(ninjaProperties["belt_level"]); }
public void NinjaWithParameterizedExperience(Table table) { var experience = table.CreateInstance <NinjaExperience>(); ninja = new Ninja(experience.GetNinjaBeltLevel()); }
public void TheNinjaHasABlackBelt(BeltLevel level) { ninja = new Ninja(level); }
public void NinjaWithParameterizedExperience(Table table) { var experience = table.CreateInstance<NinjaExperience>(); ninja = new Ninja(experience.GetNinjaBeltLevel()); }