public void FuzzySearchEmployee_withNonExistentEmployee() { EmployeeEntity employeeEntity = new EmployeeEntity(); Employee employeeCondition = new Employee(); employeeCondition.EmployeeId = 199; EmployeeDataEntity employeeDataEntity = new EmployeeDataEntity(); List <Employee> result = employeeEntity.FuzzySearchEmployee(employeeCondition); EmployeeDataEntity.EmployeeBase.Clear(); Assert.IsNull(result); }
public void FuzzySearchEmployee_withExistentEmployee() { EmployeeEntity employeeEntity = new EmployeeEntity(); Employee employeeCondition = new Employee(); employeeCondition.EmployeeId = 101; EmployeeDataEntity employeeDataEntity = new EmployeeDataEntity(); List <Employee> result = employeeEntity.FuzzySearchEmployee(employeeCondition); EmployeeDataEntity.EmployeeBase.Clear(); Assert.AreEqual(1, result.Count); Assert.AreEqual(101, result[0].EmployeeId); }