public EmployeeIncomeVm BuildEmployeeIncomeVm(string filePath) { var income = new EmployeeIncomeVm(filePath) { TotalIncome = _incomeCalculationService.CalculateTotalIncomeInYear(filePath), AverageIncome = _incomeCalculationService.CalculateAverageIncomePerYear(filePath), }; return(income); }
public void IncorrectFileName_TestMethod() { string filePath = ("E:\\souce code\\DemoApplication\\DemoApplication.Web\\Content\\IncorrectFile.csv"); EmployeeIncomeVm employeeIncomeVm = new EmployeeIncomeVm(filePath); }
public void EmptyFileName_TestMethod() { string filePath = ""; EmployeeIncomeVm employeeIncomeVm = new EmployeeIncomeVm(filePath); }