Tests.EmployeeRepositoryEF_Novice.GetByManager C# (CSharp) Method

GetByManager() public method

public GetByManager ( int managerKey ) : IList
managerKey int
return IList
        public IList<Employee> GetByManager(int managerKey)
        {
            using (var context = new CodeFirstModels())
            {
                return context.Employees.Where(e => e.ManagerKey == managerKey).ToList();
            }
        }