private CherryServiceLocatorAndRegistry(CherryServiceLocatorAndRegistry parent)
 {
     _parent = parent;
     Register(typeof(IServiceLocator), this);
     Register(typeof(IServiceRegistry), this);
     Register(typeof(ICherryServiceLocatorAndRegistry), this);
 }
        public IServiceRegistry CreateChildRegistry()
        {
            var child = new CherryServiceLocatorAndRegistry(this);

            lock (_children)
            {
                _children.Add(child);
            }

            return child;
        }
Пример #3
0
 public void BeforeEachTest()
 {
     if (_registry != null)
     {
         _registry.Dispose();
     }
     _registry = new CherryServiceLocatorAndRegistry();
     _progressService = null;
     _progressService = CreateProgressService(_registry);
     Assert.IsNotNull(_progressService, "Please implement the method CreateProgressService()");
 }