public override EvaluationCode Evaluate(IA11yElement e)
        {
            if (e == null)
            {
                throw new ArgumentNullException(nameof(e));
            }

            var condition = Relationships.Any(Patterns.ExpandCollapse, Patterns.Invoke, Patterns.Toggle);

            return(condition.Matches(e) ? EvaluationCode.Pass : EvaluationCode.Error);
        }
        public override bool PassesTest(IA11yElement e)
        {
            if (e == null)
            {
                throw new ArgumentNullException(nameof(e));
            }

            var condition = Relationships.Any(Patterns.ExpandCollapse, Patterns.Invoke, Patterns.Toggle);

            return(condition.Matches(e));
        }
예제 #3
0
 private bool IsRelationshipExist(IGlymaRelationship relationship)
 {
     return(Relationships.Any(q => q.ProxyRelationship.Id == relationship.ProxyRelationship.Id));
 }