Mocking insert query to a MySQL Database using Moq
问题 I am currently trying to learn Mocking with Moq, and I wanted to try it on an existing database that I have, however I am unsure how is the correct way to approach this. In my data layer I have a class that handles connecting to the DB and has the various methods for inserting, selecting etc. I want to test whether an actor was correctly inserted into the database. My Insert method currently looks like this: public void Insert(string firstname, string lastname) { string query = $"INSERT INTO