public void GetEmployees_TraverseThroughTheEmployeeObject_CheckIfAnyPersonsIdIs100() { EmployeeFunction employeeFunction = new EmployeeFunction(); var people = employeeFunction.GetEmployees(); Assert.That(people.Any(p => p.id == 100)); }
public void GetEmployees_TraverseThroughEmployeesData_CheckIfAllDataAreUniqueBasedOnId() { EmployeeFunction employeeFunction = new EmployeeFunction(); IEnumerable <Employee> employees = employeeFunction.GetEmployees(); Assert.That(employees.Select(item => item.id), Is.Unique); }
public void CheckIfGetEmployeesAndGetEmployeesWhoHasJoinedThePreviousYearHasDifferentData() { EmployeeFunction employeeFunction = new EmployeeFunction(); IEnumerable <Employee> employees = employeeFunction.GetEmployees(); IEnumerable <Employee> employees1 = employeeFunction.GetEmployeesWhoHasJoinedPreviousYear(); Assert.That(employees, !Is.EqualTo(employees1)); }
public void GetEmployees_AccessThePredefinedEmployeeObject_CheckIfAnyNullValueIsAvailable() { EmployeeFunction employeeFunction = new EmployeeFunction(); Assert.That(employeeFunction.GetEmployees(), !Is.Null); }