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)); }
private bool IsRelationshipExist(IGlymaRelationship relationship) { return(Relationships.Any(q => q.ProxyRelationship.Id == relationship.ProxyRelationship.Id)); }