title: How could this be rewritten using ninject?
body: <p>What would the following example look like re-written to use Ninject?</p>
  
  <p>Specifically how would you bind a Samurai to both Shuriken and Sword?</p>
  
  <p>(From <a href="https://github.com/ninject/ninject/wiki/Dependency-Injection-By-Hand" rel="nofollow">https://github.com/ninject/ninject/wiki/Dependency-Injection-By-Hand</a>)</p>
  
  <pre><code>interface IWeapon
  {
      void Hit(string target);
  }
  
  class Sword : IWeapon
  {
      public void Hit(string target) 
      {
          Console.WriteLine("Chopped {0} clean in half", target);
      }
  }
  
  class Shuriken : IWeapon
  {
      public void Hit(string target)
      {
          Console.WriteLine("Pierced {0}'s armor", target);
      }
  }
  
  class Program
  {
      public static void Main() 
      {
          var warrior1 = new Samurai(new Shuriken());
          var warrior2 = new Samurai(new Sword());
          warrior1.Attack("the evildoers");
          warrior2.Attack("the evildoers");    
         /* Output...
          * Piereced the evildoers armor.
          * Chopped the evildoers clean in half.
          */
      }
  }
  </code></pre>