-
Notifications
You must be signed in to change notification settings - Fork 0
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
Builder Patterns for more flexible dataprep #39
Comments
How to handle random vs. customized values? Unlike in the method-based data-prep, I can't count on knowing all customized properties up front.
If I pursue choice 2, here are ways to fill values |
I'm realizing that bogus does most of the things I'm concluding i should do with my builder
It even allows named rule sets, but they are based on string keys : /. Too magical What it doesn't provide well are terse customization and named scenarios per type. It also doesn't play well with having persistence or other configuration injected.
|
Here is a possible example in Bogus https://github.com/bchavez/Bogus/blob/master/Source/Bogus/Faker%5BT%5D.cs |
A builder could enable complex data creation while keeping each custom dimension more independent (fewer parameter in each signature, mix and match scenarios).
Bogus already works as a builder, but is very generic and requires relatively verbose configuration (*.RuleFor( prop => prop.Rulestuff...))
Key concerns.
Possible solutions
The text was updated successfully, but these errors were encountered: