public int InDIFrameworkClass() { IServiceLocator ok = OldAndBrokenServiceLocator.Instance; IServiceLocator alsoOk = OldAndBrokenServiceLocatorFactory.Create(); return(0); }
public void UsesBrokenLocator() { IServiceLocator locator = /* OldAndBrokenLocatorIsObsolete */ OldAndBrokenServiceLocator /**/.Instance; } public void UsesBrokenLocatorFactory() { IServiceLocator locator = /* OldAndBrokenLocatorIsObsolete */ OldAndBrokenServiceLocatorFactory /**/.Create(); }