/// <summary> /// Creates a random string based on Descriptors MaxLength and CharacterType got /// from the propertyExpression /// </summary> /// <param name="propertyExpression">Property to create a random valid value for.</param> /// <returns>string</returns> public static string CreateRandomValidValue <T>(Expression <Func <T> > propertyExpression) { return(CreateRandomValidValue(DescriptorUtils.GetDescriptor(propertyExpression))); }