protected void Page_Load(object sender, EventArgs e) { var fileContentService = new FileContentService( ConfigurationManager.AppSettings["webmarkupmin:Samples:TextContentDirectoryPath"]); Body = fileContentService.GetFileContent("change-log.html"); }
public async Task FileContentService_Test() { _emailProcessor.Setup(mock => mock.ProcessEmailContent()).Returns(Task.FromResult(lstFileContent)); _azureFileProcessor.Setup(mock => mock.ProcessAzureFilesContent()).Returns(Task.FromResult(lstFileContent)); var fileContents = await _underTest.GetFileContent(lstDealerCsvSources); Assert.IsNotNull(fileContents); Assert.AreEqual(4, fileContents.Count); }
public IActionResult Index() { ViewBag.Body = new HtmlString(_fileContentService.GetFileContent("index.html")); return(View()); }
public ActionResult Index() { ViewBag.Body = _fileContentService.GetFileContent("index.html"); return(View()); }