private static void RunConsolePrinter(StandardKernel kernel)
        {
            var formatter = kernel.Get <IFormatter>();
            var printer   = new ConsolePrinter(formatter);

            printer.Print("Hello world");
        }
        static void Main(string[] args)
        {
            // Ninject
            var kernel = new StandardKernel();
            Bindings.RegisterBindings(kernel);

            var jsonFormatter = new JsonFormatter();
            var xmlFormatter = kernel.Get<IFormatter>();
            var printer = new ConsolePrinter(xmlFormatter);
            printer.Print("Hello, message!");
        }
        static void Main(string[] args)
        {
            // Ninject
            var kernel = new StandardKernel();

            Bindings.RegisterBindings(kernel);

            var jsonFormatter = new JsonFormatter();
            var xmlFormatter  = kernel.Get <IFormatter>();
            var printer       = new ConsolePrinter(xmlFormatter);

            printer.Print("Hello, message!");
        }
 private static void RunConsolePrinter(StandardKernel kernel)
 {
     var formatter = kernel.Get<IFormatter>();
     var printer = new ConsolePrinter(formatter);
     printer.Print("Hello world");
 }