on-internet
← Community

How to use AutoBogus to create fake object of class with constructor parameter?

Stack Overflow ·

I have a class, for example User, with a dependency of type IValidate in the constructor paramaters. Could someone please help me create fake object with a mocked instance for this parameter? Right now it is throwing an exception. Is there any way to configure the parameter?

Comments

Sign in or sign up to comment and upvote.

No comments yet.