public void GetSortedDataLines()
        {
            var dataLines = DataLineManagerBll.GetSortedDataLines(FilePath);

            Assert.AreEqual(dataLines.Count(), 8);

            var expectedDataLineIndex = 4;
            var expectedFragmentIndex = 0;
            var expectedValue         = -1.1M;

            var actualValueString = dataLines[expectedDataLineIndex].Fragments[expectedFragmentIndex].Value.ToString();

            decimal.TryParse(actualValueString, out decimal actualValue);

            Assert.AreEqual(actualValue, expectedValue);
        }
        public IActionResult Index()
        {
            var sortedDataLines = DataLineManagerBll.GetSortedDataLines(ApplicationEnvironment.InputFilePath);

            var dataLineViewModels = new List <DataLineViewModel>();

            if (sortedDataLines == null)
            {
            }
            else
            {
                foreach (var dataLine in sortedDataLines)
                {
                    var dataLineViewModel = new DataLineViewModel();

                    dataLineViewModel = Mapper.Map <DataLineViewModel>(dataLine);

                    dataLineViewModels.Add(dataLineViewModel);
                }
            }

            return(View(dataLineViewModels));
        }