protected void Page_Load(object sender, EventArgs e)
        {
            var fileContentService = new FileContentService(
                ConfigurationManager.AppSettings["webmarkupmin:Samples:TextContentDirectoryPath"]);

            Body = fileContentService.GetFileContent("change-log.html");
        }
Example #2
0
        public HomeController(
            IConfigurationRoot configuration,
            IHostingEnvironment hostingEnvironment,
            JsEvaluationService jsEvaluationService)
        {
            string textContentDirectoryPath = configuration
                                              .GetSection("jsengineswitcher")
                                              .GetSection("Samples")["TextContentDirectoryPath"]
            ;

            _fileContentService  = new FileContentService(textContentDirectoryPath, hostingEnvironment);
            _jsEvaluationService = jsEvaluationService;
        }
        public HomeController(
            IConfigurationRoot configuration,
            IHostingEnvironment hostingEnvironment,
            SitemapService sitemapService)
        {
            string textContentDirectoryPath = configuration
                                              .GetSection("webmarkupmin")
                                              .GetSection("Samples")["TextContentDirectoryPath"]
            ;

            _fileContentService = new FileContentService(textContentDirectoryPath, hostingEnvironment);
            _sitemapService     = sitemapService;
        }
Example #4
0
 public void Setup()
 {
     _azureFileProcessor = new Mock <IAzureFileProcessor>();
     _emailProcessor     = new Mock <IEmailProcessor>();
     _underTest          = new FileContentService(_emailProcessor.Object, _azureFileProcessor.Object);
 }
 public HomeController(FileContentService fileContentService, SitemapService sitemapService)
 {
     _fileContentService = fileContentService;
     _sitemapService     = sitemapService;
 }
Example #6
0
 public FileContentController(MagmaGenericDbContext magmaGenericDbContext)
 {
     fileContentService     = new FileContentService(magmaGenericDbContext);
     genericResponseFactory = new GenericResponseFactory();
 }
Example #7
0
 public HomeController(FileContentService fileContentService, JsEvaluationService jsEvaluationService)
 {
     _fileContentService  = fileContentService;
     _jsEvaluationService = jsEvaluationService;
 }