soenneker / soenneker.utils.autobogus

The .NET Autogenerator
https://soenneker.com
MIT License
22 stars 2 forks source link

Generate multiple creates nullable entries #158

Closed unsafePtr closed 1 month ago

unsafePtr commented 1 month ago

When trying to generate multiple entities it's generating nullable entries. Seems it's not a drop-in replacement for AutoBogus. I am using NUnit as testing engine with parallel execution enabled.

Screenshot 2024-05-08 172610

soenneker commented 1 month ago

Can you provide a simple example showing this issue? There are tests covering this scenario.

unsafePtr commented 1 month ago

I can share the exact code, but for example below example will throw NRE, while with AutoBogus it will work without any problem.

TestProject2.zip

soenneker commented 1 month ago

@unsafePtr Thanks for providing the example. Please test with the latest version, and let me know if there's an issue.