static void ProcessJobs(int index) { Console.WriteLine("\nJob {0} Output\n", index); JobParser job1 = new JobParser($"../../JobFiles/Job{index}.txt"); job1.LoadJobElements(); JobComponents temp = job1.getJob(0); List <JobComponents> test = job1.getJobAllElements().ToList(); JobCalculator pCalc = new JobCalculator(temp, test); pCalc.DumpOutput(index); }
public void Job1JobCalculatorTestMethod() { JobParser job1 = new JobParser("../../JobFiles/Job1.txt"); job1.LoadJobElements(); JobComponents temp = job1.getJob(0); List <JobComponents> test = job1.getJobAllElements().ToList(); JobCalculator pCalc = new JobCalculator(temp, test); pCalc.DumpOutput(1); decimal total = 2940.30m; Assert.AreEqual(total, pCalc.CalculateTotal()); }