Open click2install opened 2 years ago
Hi @click2install, thanks for raising an issue. Can you provide a minimum reproducible example please.
Thanks, @rgvlee we were in a pinch and went with another option. I will attempt to get a repro done though as this API looks more powerful.
@click2install are you able to provide a minimum reproducible example? I'd like to resolve this issue.
Using efcore 5.0.9. Using any of the 3.x.y versions of your package yield the same result whether using the
Create.MockedDbContextFor<MyDbContext>();
orThe code will throw
NSubstitute.Exceptions.CouldNotSetReturnDueToNoLastCallException: 'Could not find a call to return from.
with stack traceI have a public ctor on the dbcontext as