Ejemplo n.º 1
0
        private static void SetupDependencies()
        {
            var dependencyRegistrar = new DependencyRegistrar(_unityContainer = new UnityContainer());
            var containers          = new IDependencyContainer[] { new IODependencyContainer() };

            dependencyRegistrar.RegisterDependencies(containers);
            dependencyRegistrar.InitializeDependencies(containers.OfType <IInitializableContainer>().ToArray());

            _pubProvider     = _unityContainer.Resolve <IPubFileProvider>();
            _mapFileProvider = _unityContainer.Resolve <IMapFileProvider>();
        }