Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

dmitrydnl/PersonGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is PersonGenerator?

PersonGenerator can generate unique person with random name, age, birthday, email, etc.

How do I use PersonGenerator?

GeneratorSettings settings = new GeneratorSettings
{
    Language = Languages.English,
    FirstName = true,
    MiddleName = true,
    LastName = true
};

PersonGenerator.PersonGenerator personGenerator = new PersonGenerator.PersonGenerator(settings);
List<Person> people = personGenerator.Generate(5);
GeneratorSettings settings = new GeneratorSettings
{
    Age = true,
    MinAge = minAge,
    MaxAge = maxAge
};

PersonGenerator.PersonGenerator personGenerator = new PersonGenerator.PersonGenerator(settings);
List<Person> people = personGenerator.Generate(100);