How to unit test a controller with XUnit, Moq and AutoFixture?

Use the [NoAutoProperties] attribute to decorate the controller parameter in the test method.

Refer to this answer for details.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top