C# Class Faker.User

Static user class
Afficher le fichier Open project: FermJacob/Faker.Data Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GeneratePassword ( int length, int nonAlphaNumericChars ) : string

Generate password method

Method Details

Email() public static méthode

Gets an email address
public static Email ( ) : string
Résultat string

Password() public static méthode

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

Password() public static méthode

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

Password() public static méthode

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
Résultat string

Password() public static méthode

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
Résultat string

Username() public static méthode

Gets a random username
public static Username ( ) : string
Résultat string