public async Task <ActionResult> Index()
        {
            var fileList = await PageReader.GetFilesAsync();

            var model = fileList.Select(file => new LogFileListModel(file));

            return(View(model));
        }
Ejemplo n.º 2
0
        public async Task ListsFilesAsync()
        {
            var fileList = await PageReader.GetFilesAsync();

            Assert.Single(fileList);

            Assert.Equal(Fixture.TestName, fileList.First().Name);
            Assert.Equal(Fixture.FileLength, fileList.First().Length);
        }