Ejemplo n.º 1
0
        private bool ValidateResultCode(IAttributeContainer container)
        {
            if (ResultCodes == null || !ResultCodes.Any())
            {
                throw new NotSupportedException("Attribute rule is of type that validates a resultcode, but the rule does not define any resultcodes");
            }

            if (string.IsNullOrEmpty(container.FixCode))
            {
                return(false);
            }

            return(ResultCodes.Contains(container.FixCode));
        }