Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Genfu Instances #147

Open
marcoregueira opened this issue Dec 20, 2018 · 0 comments
Open

Genfu Instances #147

marcoregueira opened this issue Dec 20, 2018 · 0 comments

Comments

@marcoregueira
Copy link
Contributor

It would be great to be able to create GenFu instances. That would reduce interferences in multithreaded scenarios, allow creating specialized generators and better support for DI environments.

For instance:

var childGenerator = new GenFuInstance();
var adultGenerator = new GenFuInstance();

childGenerator.Configure<Person>().Fill(x => x.Age).WithinRange(1, 10);
adultGenerator.Configure<Person>().Fill(x => x.Age).WithinRange(20, 100);

PR #146 implements this change with while keeping old static usage to avoid breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant