public void CheckIfAnyPersonsIdIs100() { EmployeeFunction employeeFunction = new EmployeeFunction(); var people = employeeFunction.GetEmployees(); Assert.That(people.Any(p => p.Id == 100)); }
public void CheckIfAllDataAreUniqueBasedOnId() { EmployeeFunction employeeFunction = new EmployeeFunction(); IEnumerable <Employee> employees = employeeFunction.GetEmployees(); Assert.That(employees.Select(item => item.Id), Is.Unique); }
public void GetEmployeesWhoJoinedInPreviousYears() { EmployeeFunction employeeFunction = new EmployeeFunction(); IEnumerable <Employee> employees = employeeFunction.GetEmployees(); IEnumerable <Employee> employees1 = employeeFunction.GetEmployeesWhoHasJoinedPreviousYear(); Assert.That(employees, !Is.EqualTo(employees1)); }
public void CheckIfAnyNullValueIsAvailable() { EmployeeFunction employeeFunction = new EmployeeFunction(); Assert.That(employeeFunction.GetEmployees(), !Is.Null); }