Documentation to Deal with dependency injection for Unit tests #386
Labels
documentation
Documentation may be added or completed on the portal
question
Further information is requested
Discussed in #385
Originally posted by mlholt03 October 17, 2022
If I am access a database using this tool, and I wish to write unit tests for the code I am writing, how can I mock out the database access such that my unit test is not actually attempting to connect to a database? Is there some way to provide a
SqlCommandValueProvider
instance that simply returns a basic sample set of data without querying a database?The text was updated successfully, but these errors were encountered: