Пример #1
0
        public List <Test> AlltestsThat(condition Mycondition)
        {
            List <Test>        myList  = new List <Test>();
            IEnumerable <Test> allTest = dal.GetAllTests();

            foreach (Test t in allTest)
            {
                if (Mycondition(t))
                {
                    myList.Add(t);
                }
            }
            return(myList);
        }