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
dotnet core 3.0 - Unable to create an instance from Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo #1141
Comments
@TroyHouston I've ran into this issue as well. I've fixed it by using the [Greedy] Attribute on my controller. I'm using Nunit :) |
@Fjsmoreira Thanks! That also works for me :) |
I know this issue is closed, but I need some help understanding where the [Greedy] Attribute comes from. @Fjsmoreira or @TroyHouston, what package/library do I need to use to get the [Greedy] Attribute? |
Never mind. Figured it out! Looks like it is part of the AutoFixture.Xunit package. |
I know this is closed but for other folks who run into this who arent using Xunit the fast (lazy) workaround is to do
|
Solved the problem with |
I am currently in the process of upgrading a simple project to dotnet core 3. This project has a number of unit tests, the majority against the controller/api layer using AutoFixture & xunit2.
After the upgrade everything is working EXCEPT the autofixture unit tests that attempt to create a controller. They fail with the following exception:
The text was updated successfully, but these errors were encountered: