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

Passing parameters to Faker #554

Open
FluentProgrammer opened this issue Jul 17, 2024 · 0 comments
Open

Passing parameters to Faker #554

FluentProgrammer opened this issue Jul 17, 2024 · 0 comments

Comments

@FluentProgrammer
Copy link

FluentProgrammer commented Jul 17, 2024

Description

I would like the ability to set/get Faker parameters for example by calling Faker.AddParameter(string, object) and Faker.GetParameter(string, object) so that it can be used in Faker.RuleFor() and Faker.Rules().

An example on how to do this was provided in #460 (comment) using extension methods and it would be awesome if the extension methods were officially implemented in the library as a builtin feature.

Similar features in other libraries

LINQPad Code Example

An example was provided in #460 (comment).

What alternatives have you considered?

Could you help with a pull-request?

No

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

No branches or pull requests

2 participants