static void Main(string[] args)
        {
            IApplicationContext bootstrapContext = ContextRegistry.GetContext();
            IBusinessLogicLayer bl = bootstrapContext.GetObject("BL") as IBusinessLogicLayer;

            bl?.ValidateCustomer();

            Console.Read();
        }
        static void Main(string[] args)
        {
            IApplicationContext bootstrapContext = ContextRegistry.GetContext();

            //alternatively the bootstrapContext can be created with a section in the App.Config file
            //IApplicationContext bootstrapContext = new XmlApplicationContext("Application-Config.xml");


            IBusinessLogicLayer bl = bootstrapContext.GetObject("BL") as IBusinessLogicLayer;

            bl?.ValidateCustomer();

            Console.Read();
        }