Пример #1
0
        public TestFilterRuntimeModelMetadata(TestAttributeType attributeType)
        {
            _attributeType = attributeType;

            OwnerType   = typeof(TestFilterRuntimeModel);
            Type        = attributeType.Type;
            DisplayName = _attributeType.Name;
        }
Пример #2
0
        private object GetAttributeValue(TestFilterRuntimeModel operation, TestAttributeType attributeType)
        {
            var attributeName = attributeType?.Name;

            if (ReferenceEquals(attributeName, null))
            {
                return(null);
            }

            TestAttributeValue value;

            return(operation.Attributes.TryGetValue(attributeName, out value) ? value.Value : null);
        }