This is what I was thinking along the lines of testing the "internals" of SQLProvider. queryTemplate
acts as a stub that we can use to create different query conditions.
However, in order to make this work, I had to expose a number of types and methods by removing the internal
access modifier. I'm not sure how that feels for you. I don't understand the architecture well enough yet to make any kind of opinion.
But that stuff aside, would something like this be desirable?
module ``Generate FROM clause``
open NUnit.Framework
open FSharp.Data.Sql.Common