This is something that i'm doing .. and right now .. there's no way I can. (Yes, i can fork and PR 👍 )
basically, my repo takes either a connection string or an IDbExecutor. 1st ctor is for my normal code. 2nd ctor is for my TDD.
(pseudo code @ gist)
The reason i'm using two ctors is because i might use the SqlConnection multiple times in a a method (eg. get users, get cats, get dogs) .. and i open/close for each one call as early as possible.
thoughts, @half-ogre ?