static void Main(string[] args)
        {
            Bootstrapper.Init();
            Initiator initiator = DependencyInjector.Retrieve <Initiator>();
            string    data      = initiator.FetchData();

            Console.WriteLine(data);
            Console.ReadLine();
        }
Пример #2
0
        static void Main(string[] args)
        {
            //Initiator _initiator = new Initiator();
            //string data = _initiator.FetchData();
            //Console.WriteLine(data);

            Bootstrapper.Init(); //this will create a new class of business which can be used in other part of the programms.
            Initiator _initiator = DependencyInjector.Retrieve <Initiator>();
            string    data       = _initiator.FetchData();

            Console.WriteLine(data);
            Console.ReadLine();
        }