public RepositoryMapping()
 {
     Config cfg = new Config();
     FileSystemHelper fs = new FileSystemHelper(cfg);
     ResourceStrings r = new ResourceStrings(cfg);
     PathHelper = new AppUrlHelper(fs, r);
 }
 public HomeController()
 {
     this.Config = new Config();
     this.Resources = new ResourceStrings(Config);
     this.FileSystem = new FileSystemHelper(Config);
     this.PathHelper = new AppUrlHelper(FileSystem, Resources);
     this.InitializeTableOfContentsRepository();
     this.ApplicationSamplesRepository = new ApplicationSampleRepository(Resources.Culture, this.FileSystem);
     this.SampleRepository = new SampleRepository(Resources.Culture, this.FileSystem);
     this.ControlRepository = new ControlRepository(Resources.Culture, this.FileSystem);
     this.SampleSourceCodeRepository = new SampleSourceCodeRepository(this.PathHelper);
     this.InitializeHelpContentRepository();
     this.LocalizedSampleStringRepository = new LocalizedSampleStringRepository(this.Resources.Culture);
 }
 // 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;
 }