public void GivenQuery_ShouldUpdateSalary() { double expectedResult = 400000.00; EmployeePayroll employeePayroll = new EmployeePayroll(); EmployeePayrollModel model = new EmployeePayrollModel() { employee_name = "Samir", salary = 400000.00 }; double salary = employeePayroll.UpdateEmployeeSalary(model); Assert.AreEqual(expectedResult, salary); }
public void GivenQuery_ShouldUpdateSalary() { EmployeePayroll employeePayroll = new EmployeePayroll(); EmployeePayrollModel model = new EmployeePayrollModel() { employee_name = "Saket", salary = 450000.00 }; DateTime startDataTimeforDB = DateTime.Now; employeePayroll.UpdateEmployeeSalary(model); DateTime stopDateTimeforDB = DateTime.Now; Console.WriteLine("Duration for Updatation in DB : " + (stopDateTimeforDB - startDataTimeforDB)); }