C# Class Faker.User

Static user class
Exibir arquivo Open project: FermJacob/Faker.Data Class Usage Examples

Public Methods

Method Description
Email ( ) : string

Gets an email address

Password ( ) : string

Gets a random password Random length and number of special characters

Password ( int numberOfSpecialChars ) : string

Gets a random password. Will create a password 5 - 20 characters

Password ( int length, bool useSpecialChars ) : string

Gets a random password

Password ( int length, int numberOfSpecialChars ) : string

Gets a random password

Username ( ) : string

Gets a random username

Private Methods

Method Description
GeneratePassword ( int length, int nonAlphaNumericChars ) : string

Generate password method

Method Details

Email() public static method

Gets an email address
public static Email ( ) : string
return string

Password() public static method

Gets a random password Random length and number of special characters
public static Password ( ) : string
return string

Password() public static method

Gets a random password. Will create a password 5 - 20 characters
public static Password ( int numberOfSpecialChars ) : string
numberOfSpecialChars int Number of special characters
return string

Password() public static method

Gets a random password
public static Password ( int length, bool useSpecialChars ) : string
length int Length of password
useSpecialChars bool Use special characters. If true, random number of characters
return string

Password() public static method

Gets a random password
public static Password ( int length, int numberOfSpecialChars ) : string
length int Length of password
numberOfSpecialChars int Number of special characters to use
return string

Username() public static method

Gets a random username
public static Username ( ) : string
return string