Open holotrek opened 2 years ago
Hey @holotrek
The intent of the configuration is that is used hierarchically and is passed between the different ways of generating. Your statically defined configuration should be passed down to the faker instances, so you have discovered a bug.
Leave it with me and I will investigate.
Nick.
It appears that WithOverride works only specifically if you use a static configuration and the static AutoFaker.Generate call. This is the case with both the override class and the dynamic Func.
Here is a simple complete example that identifies the issue (xUnit and FluentAssertions used):
[Edit] I'm not sure if this is expected behavior, but it would also be ideal to be able to statically configure the AutoFaker, but then also allow the instanced versions to use that configuration.