Skip to content

Commit

Permalink
feat(tc): fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry Perret committed Jan 23, 2021
1 parent 5a1bd7d commit f4c1d80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Vp.FSharp.Sql.Tests/Mocks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ open System
open System.Data
open System.Data.Common

open System.Threading.Tasks
open Vp.FSharp.Sql


Expand Down Expand Up @@ -45,6 +46,8 @@ let fakeData values columns =

let makeDeps (valToParam: (string -> 'DbType -> 'DbParameter) option) =
{ CreateCommand = (fun connection -> connection.CreateCommand())
SetCommandTransaction = (fun command transaction -> command.Transaction <- transaction)
BeginTransactionAsync = (fun _ _ _ -> ValueTask.FromResult null)
ExecuteReaderAsync = (fun cmd -> cmd.ExecuteReaderAsync)
DbValueToParameter = valToParam |> Option.defaultValue (fun _ _ -> failwith "") }

Expand Down

0 comments on commit f4c1d80

Please sign in to comment.