Пример #1
0
        public void SetupContext()
        {
            _dependencyProvider = new StubDependencyProvider();
            _resourceFinder     = new StubResourceFinder();
            _dependencyCache    = new InMemoryDependencyCache();
            _scriptGroups       = new ResourceGroupManager(ResourceMode.Debug);
            _styleGroups        = new ResourceGroupManager(ResourceMode.Debug);

            _dependencyManager = new DependencyManager(_resourceFinder, _dependencyCache, _scriptGroups, _styleGroups);
            _dependencyManager.MapProvider(".js", _dependencyProvider);
        }
Пример #2
0
        private void SetupWithMode(ResourceMode resourceMode)
        {
            _dependencyProvider = new StubDependencyProvider();
            _resourceFinder     = new StubResourceFinder();
            _dependencyCache    = new InMemoryDependencyCache();
            _scriptGroups       = new ResourceGroupManager(resourceMode);
            _styleGroups        = new ResourceGroupManager(resourceMode);

            _dependencyManager = new DependencyManager(new ResourceModeFilteringFinder(resourceMode, _resourceFinder), _dependencyCache, _scriptGroups, _styleGroups,
                                                       resourceMode);
            _dependencyManager.MapProvider(".js", _dependencyProvider);
        }
Пример #3
0
        private void SetupWithMode(ResourceMode resourceMode)
        {
            _dependencyProvider = new StubDependencyProvider();
            _resourceFinder = new StubResourceFinder();
            _dependencyCache = new InMemoryDependencyCache();
            _scriptGroups = new ResourceGroupManager(resourceMode);
            _styleGroups = new ResourceGroupManager(resourceMode);

            _dependencyManager = new DependencyManager(new ResourceModeFilteringFinder(resourceMode, _resourceFinder), _dependencyCache, _scriptGroups, _styleGroups,
                                                       resourceMode);
            _dependencyManager.MapProvider(".js", _dependencyProvider);
        }