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

Unable to fake immutable collection properties #111

Open
gnalvesteffer opened this issue Apr 18, 2024 · 1 comment
Open

Unable to fake immutable collection properties #111

gnalvesteffer opened this issue Apr 18, 2024 · 1 comment

Comments

@gnalvesteffer
Copy link

When attempting to fake types that have immutable collection properties (i.e. IImmutableList), AutoFaker.Generate<T>() throws an exception due to not being able to find a parameterless constructor for the immutable type, since immutable collections are instead created via the type's .Create() method.

@soenneker
Copy link

@gnalvesteffer ImmutableList/IImmutableList is now implemented in soenneker.utils.autobogus

Let me know if you have use for other Immutable types.

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

No branches or pull requests

2 participants