public TestFilterRuntimeModelMetadata(TestAttributeType attributeType) { _attributeType = attributeType; OwnerType = typeof(TestFilterRuntimeModel); Type = attributeType.Type; DisplayName = _attributeType.Name; }
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); }