Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var    controller = new HelloController();
            string result     = controller.Index("Stephanie");

            Console.WriteLine(result);
        }
Ejemplo n.º 2
0
        private static void UseDependencyInjection()
        {
            IHelloService hello = new HelloService();

            var greetingController = new HelloController(hello);

            string result = greetingController.Greeting("Tobi");

            Console.WriteLine(result);
        }