// For testing purposes public HomeController(ResourceStrings resources, Config config, FileSystemHelper fileSystem, AppUrlHelper urlHelper, TableOfContentsRepository tocRepository, ApplicationSampleRepository appSampleRepository, SampleRepository sampleRepository, ControlRepository controlRepository, HelpContentRepository helpContentRepository, SampleSourceCodeRepository sampleSourceRepository) { this.Resources = resources; this.Config = config; this.FileSystem = fileSystem; this.PathHelper = urlHelper; this.TableOfContentsRepository = tocRepository; this.ApplicationSamplesRepository = appSampleRepository; this.SampleRepository = sampleRepository; this.ControlRepository = controlRepository; this.HelpContentRepository = helpContentRepository; this.SampleSourceCodeRepository = sampleSourceRepository; }
protected virtual void InitializeTableOfContentsRepository() { this.TableOfContentsRepository = new TableOfContentsRepository(this.Resources, this.FileSystem); }