Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public void TheNinjaHasABlackBelt(String level)
 {
     ninja = new Ninja(level);
 }
Ejemplo n.º 3
0
 public void NinjaWithExperience(Table table)
 {
   List<Dictionary<string, string>> hashes = table.Hashes();
   Dictionary<String, String> ninjaProperties = hashes[0];
   ninja = new Ninja(ninjaProperties["belt_level"]);
 }
Ejemplo n.º 4
0
 public void TheNinjaHasABlackBelt(String level)
 {
   ninja = new Ninja(level);
 }
Ejemplo n.º 5
0
        public void NinjaWithParameterizedExperience(Table table)
        {
            var experience = table.CreateInstance <NinjaExperience>();

            ninja = new Ninja(experience.GetNinjaBeltLevel());
        }
Ejemplo n.º 6
0
 public void TheNinjaHasABlackBelt(BeltLevel level)
 {
     ninja = new Ninja(level);
 }
Ejemplo n.º 7
0
        public void NinjaWithParameterizedExperience(Table table)
        {
            var experience = table.CreateInstance<NinjaExperience>();

            ninja = new Ninja(experience.GetNinjaBeltLevel());
        }
Ejemplo n.º 8
0
 public void TheNinjaHasABlackBelt(BeltLevel level)
 {
     ninja = new Ninja(level);
 }