public RepositoryMapping()
 {
     Config cfg = new Config();
     FileSystemHelper fs = new FileSystemHelper(cfg);
     ResourceStrings r = new ResourceStrings(cfg);
     PathHelper = new AppUrlHelper(fs, r);
 }
Example #2
0
 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);
 }
Example #3
0
 // 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;
 }