예제 #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);
        }
예제 #2
0
 public void TheNinjaHasABlackBelt(String level)
 {
     ninja = new Ninja(level);
 }
예제 #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"]);
 }
예제 #4
0
 public void TheNinjaHasABlackBelt(String level)
 {
   ninja = new Ninja(level);
 }
예제 #5
0
        public void NinjaWithParameterizedExperience(Table table)
        {
            var experience = table.CreateInstance <NinjaExperience>();

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

            ninja = new Ninja(experience.GetNinjaBeltLevel());
        }
예제 #8
0
 public void TheNinjaHasABlackBelt(BeltLevel level)
 {
     ninja = new Ninja(level);
 }