Skip to content

Unable to generate instance if a property is for an abstract type #104

@PureKrome

Description

@PureKrome

I have a full repo code showing that AutoBogus cannot create a new instance of something, if that-something has a property which is an abstract type.

I thought the documentation said that it will revert this property to null?

Here's the full code which reproduces this problem: https://dotnetfiddle.net/yDQh82

Is this a bug on my end, or with AutoBogus?
Is there a way to "hint" to AutoBogusthat it should SKIP any property decorated with some custom code, which means I can avoid this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions