I want to test my C # code in Visual Studio with unit tests. The code interacts with the MySQL database.
An example of what I want to check. A
user opens my application and will be saved to the database through webservice. Now I want to know if the table Usershas another row before a new user appears. But if I test the method in a web service that will create an entry in the database, the test data will be in the database. And I do not need test data in my database.
Is there a solution to this problem?
source
share