protected void Page_Load(object sender, EventArgs e) { var fileContentService = new FileContentService( ConfigurationManager.AppSettings["webmarkupmin:Samples:TextContentDirectoryPath"]); Body = fileContentService.GetFileContent("change-log.html"); }
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; }
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; }
public FileContentController(MagmaGenericDbContext magmaGenericDbContext) { fileContentService = new FileContentService(magmaGenericDbContext); genericResponseFactory = new GenericResponseFactory(); }
public HomeController(FileContentService fileContentService, JsEvaluationService jsEvaluationService) { _fileContentService = fileContentService; _jsEvaluationService = jsEvaluationService; }