Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var fileContentService = new FileContentService(
                ConfigurationManager.AppSettings["webmarkupmin:Samples:TextContentDirectoryPath"]);

            Body = fileContentService.GetFileContent("change-log.html");
        }
Пример #2
0
        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);
        }
Пример #3
0
        public IActionResult Index()
        {
            ViewBag.Body = new HtmlString(_fileContentService.GetFileContent("index.html"));

            return(View());
        }
Пример #4
0
        public ActionResult Index()
        {
            ViewBag.Body = _fileContentService.GetFileContent("index.html");

            return(View());
        }