Adf.Test.Domain.DomainObjectTestExtensions.GenerateString C# (CSharp) Method

GenerateString() private static method

private static GenerateString ( PropertyInfo propertyInfo ) : string
propertyInfo System.Reflection.PropertyInfo
return string
        private static string GenerateString(PropertyInfo propertyInfo)
        {
            var attrs = (MaxLengthAttribute[]) propertyInfo.GetCustomAttributes(typeof(MaxLengthAttribute), false);
            return attrs.Length > 0 ? new string('v', attrs[0].Length) : "v";
        }