Example #1
0
        private static void UrlLoadCsv(DataAnalyzer data)
        {
            Loader.UrlLoader urlcsv = new Loader.UrlLoader();
            urlcsv.Load();
            string maxsalarys = data.MaxSalariedEmployee(urlcsv.emplist);

            Console.WriteLine();
            Console.WriteLine("Max salaried employee is :" + maxsalarys);
            Console.WriteLine();
            data.CountEmployeeByDesignation(urlcsv.emplist);
            Console.WriteLine();
            data.CountEmployeeById(urlcsv.emplist);
            Console.WriteLine();
        }
Example #2
0
        private static void DiskloadCsv(DataAnalyzer data)
        {
            Loader.CsvLoader diskcsv = new Loader.CsvLoader();
            diskcsv.Load();

            string maxsalary = data.MaxSalariedEmployee(diskcsv.emplist);

            Console.WriteLine();
            //  Console.WriteLine("Max salaried employee is :" + maxsalary);
            Console.WriteLine();
            data.CountEmployeeByDesignation(diskcsv.emplist);
            Console.WriteLine();
            data.CountEmployeeById(diskcsv.emplist);
            Console.WriteLine();
        }