public static List <Payslip> MakePayslip(string csvFileName) { var allPayslips = new List <Payslip>(); var lines = CsvReaderWriter.ReadLines(csvFileName); for (var i = 1; i < lines.Length; i++) { var line = lines[i]; var employee = CsvFormatter.ExtractEmployee(line); employee.Country = Config.Australia; // TODO: Remove this hardcoded value once we have config input var payPeriod = CsvFormatter.ExtractPayPeriod(line); var payslip = CreatePayslipObject(employee, payPeriod); allPayslips.Add(payslip); } return(allPayslips); }