static void Main(string[] args) { AppKernel = new StandardKernel(new WeaponNinjectModule()); var warrior = AppKernel.Get<Warrior>(); warrior.Kill(); var otherWarrior = new OtherWarrior(); otherWarrior.Kill(); Console.ReadLine(); }
static void Main(string[] args) { AppKernel = new StandardKernel(new WeaponNinjectModule()); var warrior = AppKernel.Get <Warrior>(); warrior.Kill(); var otherWarrior = new OtherWarrior(); otherWarrior.Kill(); Console.ReadLine(); }