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); }
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); }