Пример #1
0
        public static HPVRuleAgeCollection GetAll()
        {
            HPVRuleAgeCollection result = new Model.HPVRuleAgeCollection();

            result.Add(new Model.HPVRuleAge1());
            result.Add(new Model.HPVRuleAge2());
            result.Add(new Model.HPVRuleAge3());
            result.Add(new Model.HPVRuleAge4());
            result.Add(new Model.HPVRuleAge5());
            return(result);
        }
Пример #2
0
        public HPVRuleAgeCollection SatisfiesCondition(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            HPVRuleAgeCollection result = new Model.HPVRuleAgeCollection();

            foreach (HPVRule rule in this)
            {
                if (rule.SatisfiesCondition(accessionOrder) == true)
                {
                    result.Add(rule);
                }
            }
            return(result);
        }