Example #1
0
        public int InDIFrameworkClass()
        {
            IServiceLocator ok     = OldAndBrokenServiceLocator.Instance;
            IServiceLocator alsoOk = OldAndBrokenServiceLocatorFactory.Create();

            return(0);
        }
Example #2
0
        public void UsesBrokenLocator()
        {
            IServiceLocator locator = /* OldAndBrokenLocatorIsObsolete */ OldAndBrokenServiceLocator /**/.Instance;
        }

        public void UsesBrokenLocatorFactory()
        {
            IServiceLocator locator = /* OldAndBrokenLocatorIsObsolete */ OldAndBrokenServiceLocatorFactory /**/.Create();
        }