Пример #1
0
        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();
        }
Пример #2
0
        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();
        }