Esempio n. 1
0
        public void CheckIfAnyPersonsIdIs100()
        {
            EmployeeFunction employeeFunction = new EmployeeFunction();
            var people = employeeFunction.GetEmployees();

            Assert.That(people.Any(p => p.Id == 100));
        }
Esempio n. 2
0
        public void CheckIfAllDataAreUniqueBasedOnId()
        {
            EmployeeFunction       employeeFunction = new EmployeeFunction();
            IEnumerable <Employee> employees        = employeeFunction.GetEmployees();

            Assert.That(employees.Select(item => item.Id), Is.Unique);
        }
Esempio n. 3
0
        public void GetEmployeesWhoJoinedInPreviousYears()
        {
            EmployeeFunction       employeeFunction = new EmployeeFunction();
            IEnumerable <Employee> employees        = employeeFunction.GetEmployees();
            IEnumerable <Employee> employees1       = employeeFunction.GetEmployeesWhoHasJoinedPreviousYear();

            Assert.That(employees, !Is.EqualTo(employees1));
        }
Esempio n. 4
0
        public void CheckIfAnyNullValueIsAvailable()
        {
            EmployeeFunction employeeFunction = new EmployeeFunction();

            Assert.That(employeeFunction.GetEmployees(), !Is.Null);
        }