public void PreciceSearchEmployee_WithNonExistentId() { EmployeeEntity employeeEntity = new EmployeeEntity(); int employeeId = 199; EmployeeDataEntity employeeDataEntity = new EmployeeDataEntity(); List <Employee> result = employeeEntity.PreciceSearchEmployee(employeeId); EmployeeDataEntity.EmployeeBase.Clear(); Assert.IsNull(result); }
public void PreciceSearchEmployee_withExistentEmployee() { EmployeeEntity employeeEntity = new EmployeeEntity(); int employeeId = 101; EmployeeDataEntity employeeDataEntity = new EmployeeDataEntity(); List <Employee> result = employeeEntity.PreciceSearchEmployee(employeeId); EmployeeDataEntity.EmployeeBase.Clear(); Assert.AreEqual(1, result.Count); Assert.AreEqual(101, result[0].EmployeeId); }