internal ConsolidatingResourceRegistry(ResourceRequirementCollection requirements, string registryName, IResourcePathResolver pathResolver, IResourceVersioningStrategy versioningStrategy)
 {
     _requirements       = requirements;
     _registryName       = registryName;
     _pathResolver       = pathResolver;
     _versioningStrategy = versioningStrategy;
 }
        public ConsolidatingResourceRegistryAccessor(AssmanContext context)
        {
            var versioningStrategy = new ConfiguredVersioningStrategy(() => context.Version);

            //TODO: Consider lessening dependency from AssmanContext to just the path resolvers
            _scriptRequirements = new ResourceRequirementCollection();
            _scriptRegistries   =
                new ResourceRegistryMap(registryName =>
                                        new ConsolidatingResourceRegistry(_scriptRequirements, registryName, context.ScriptPathResolver,
                                                                          versioningStrategy));
            _styleRequirements = new ResourceRequirementCollection();
            _styleRegistries   = new ResourceRegistryMap(registryName =>
                                                         new ConsolidatingResourceRegistry(_styleRequirements, registryName, context.StylePathResolver,
                                                                                           versioningStrategy));
        }