How to unit test a controller with XUnit, Moq and AutoFixture?
Solution 1:
Use the [NoAutoProperties]
attribute to decorate the controller parameter in the test method.
Refer to this answer for details.
Use the [NoAutoProperties]
attribute to decorate the controller parameter in the test method.
Refer to this answer for details.