Пример #1
0
        public static void Main(string[] args)
        {
            var            path = ConfigurationManager.AppSettings["CSVFilePath"];
            IFileProcessor fileProcessor;

            Console.WriteLine($"Configured path for reading the csv files is: {path}");
            Console.WriteLine($"It reads LP and TOU files and find values that are 20% above or below the median, and print to the console\n");

            try
            {
                fileProcessor = new LPFileProcessor();
                fileProcessor.ProcessFiles(path);

                fileProcessor = new TOUFileProcessor();
                fileProcessor.ProcessFiles(path);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
Пример #2
0
        public void check_LP_file_values()
        {
            FileProcessorBase <LPFileModel> lp = new LPFileProcessor();

            Assert.NotNull(lp.SelectValuesSatisfiedTheCondition(MockFile.GetMockLPData(), "LPFile", 2.5));
        }