mocking IDbContextFactory with NSubstitute, disposes contxt
I am using IDbContextFactory in a Blazor server application. I want to mock the services, I can do this using Moq, but when switching to NSubstitute I run into a problem; only the save method in the service will pass while the rest fail with the following error: