I need to test Commands and Queries in ASP.NET Core application. For that I need to choose between testing if my method was called (for that I need to mock dbContext) and if I will mock dbContext I need to mock for example Include() method. I heard that it is not the best idea to mock static methods.
I want to ask what is best practice in that case?
Maybe using in-memory DB , and instead of checking if method was called, I will check if objects were added to db?