public static void SetCurrentLocator(IServiceLocator locator)
        {
            var newContainer = new EnterpriseLibraryContainer(locator);

            lock (globalContainerLock)
            {
                globalContainer = newContainer;
            }
        }
 public void Given()
 {
     context = new MockLocatorContext();
     EnterpriseLibraryContainer.SetCurrentLocator(context.MockLocator);
 }
 public void Given()
 {
     context   = new MockLocatorContext();
     container = new EnterpriseLibraryContainer(context.MockLocator);
 }