Open FluentProgrammer opened 3 months ago
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().
Faker
Faker.RuleFor()
Faker.Rules()
An example on how to do this was provided in https://github.com/bchavez/Bogus/issues/460#issuecomment-1409712488 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
An example was provided in https://github.com/bchavez/Bogus/issues/460#issuecomment-1409712488.
No
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 inFaker.RuleFor()
andFaker.Rules()
.An example on how to do this was provided in https://github.com/bchavez/Bogus/issues/460#issuecomment-1409712488 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 https://github.com/bchavez/Bogus/issues/460#issuecomment-1409712488.
What alternatives have you considered?
Could you help with a pull-request?
No