コード例 #1
0
        public EmployeeIncomeVm BuildEmployeeIncomeVm(string filePath)
        {
            var income = new EmployeeIncomeVm(filePath)
            {
                TotalIncome   = _incomeCalculationService.CalculateTotalIncomeInYear(filePath),
                AverageIncome = _incomeCalculationService.CalculateAverageIncomePerYear(filePath),
            };

            return(income);
        }
コード例 #2
0
 public void IncorrectFileName_TestMethod()
 {
     string           filePath         = ("E:\\souce code\\DemoApplication\\DemoApplication.Web\\Content\\IncorrectFile.csv");
     EmployeeIncomeVm employeeIncomeVm = new EmployeeIncomeVm(filePath);
 }
コード例 #3
0
 public void EmptyFileName_TestMethod()
 {
     string           filePath         = "";
     EmployeeIncomeVm employeeIncomeVm = new EmployeeIncomeVm(filePath);
 }