@@ -35,15 +35,15 @@ private static dynamic CreateIdentityTableTypeDef()
3535 public void TestExecuteQueryForAnonymous ( ) =>
3636 TestExecuteQueryForAnonymousTrigger ( CreateIdentityTableTypeDef ( ) ) ;
3737
38- private static void TestExecuteQueryForAnonymousTrigger < TAnonymous > ( TAnonymous typeDef )
38+ private void TestExecuteQueryForAnonymousTrigger < TAnonymous > ( TAnonymous typeDef )
3939 where TAnonymous : class
4040 {
4141 // Setup
4242 var tables = Helper . CreateIdentityTables ( 10 ) ;
4343
44- using var connection = new SqlConnection ( Database . ConnectionStringForRepoDb ) ;
44+ using var connection = CreateConnection ( ) ;
4545 // Act
46- connection . InsertAll < IdentityTable > ( tables ) ;
46+ connection . InsertAll ( tables ) ;
4747
4848 // Act
4949 var result = connection . ExecuteQuery < TAnonymous > ( "SELECT * FROM [sc].[IdentityTable];" ) ;
@@ -60,15 +60,15 @@ private static void TestExecuteQueryForAnonymousTrigger<TAnonymous>(TAnonymous t
6060 public async Task TestExecuteQueryAsyncForAnonymous ( ) =>
6161 await TestExecuteQueryAsyncForAnonymousTrigger ( CreateIdentityTableTypeDef ( ) ) ;
6262
63- private static async Task TestExecuteQueryAsyncForAnonymousTrigger < TAnonymous > ( TAnonymous typeDef )
63+ private async Task TestExecuteQueryAsyncForAnonymousTrigger < TAnonymous > ( TAnonymous typeDef )
6464 where TAnonymous : class
6565 {
6666 // Setup
6767 var tables = Helper . CreateIdentityTables ( 10 ) ;
6868
69- using var connection = new SqlConnection ( Database . ConnectionStringForRepoDb ) ;
69+ using var connection = CreateConnection ( ) ;
7070 // Act
71- connection . InsertAll < IdentityTable > ( tables ) ;
71+ connection . InsertAll ( tables ) ;
7272
7373 // Act
7474 var result = await connection . ExecuteQueryAsync < TAnonymous > ( "SELECT * FROM [sc].[IdentityTable];" ) ;
@@ -89,15 +89,15 @@ private static async Task TestExecuteQueryAsyncForAnonymousTrigger<TAnonymous>(T
8989 public void TestQueryForAnonymous ( ) =>
9090 TestQueryForAnonymousTrigger ( CreateIdentityTableTypeDef ( ) ) ;
9191
92- private static void TestQueryForAnonymousTrigger < TAnonymous > ( TAnonymous typeDef )
92+ private void TestQueryForAnonymousTrigger < TAnonymous > ( TAnonymous typeDef )
9393 where TAnonymous : class
9494 {
9595 // Setup
9696 var tables = Helper . CreateIdentityTables ( 10 ) ;
9797
98- using var connection = new SqlConnection ( Database . ConnectionStringForRepoDb ) ;
98+ using var connection = CreateConnection ( ) ;
9999 // Act
100- connection . InsertAll < IdentityTable > ( tables ) ;
100+ connection . InsertAll ( tables ) ;
101101
102102 // Act
103103 var result = connection . Query < TAnonymous > ( "[sc].[IdentityTable]" ,
@@ -115,15 +115,15 @@ private static void TestQueryForAnonymousTrigger<TAnonymous>(TAnonymous typeDef)
115115 public async Task TestQueryAsyncForAnonymous ( ) =>
116116 await TestQueryAsyncForAnonymousTrigger ( CreateIdentityTableTypeDef ( ) ) ;
117117
118- private static async Task TestQueryAsyncForAnonymousTrigger < TAnonymous > ( TAnonymous typeDef )
118+ private async Task TestQueryAsyncForAnonymousTrigger < TAnonymous > ( TAnonymous typeDef )
119119 where TAnonymous : class
120120 {
121121 // Setup
122122 var tables = Helper . CreateIdentityTables ( 10 ) ;
123123
124- using var connection = new SqlConnection ( Database . ConnectionStringForRepoDb ) ;
124+ using var connection = CreateConnection ( ) ;
125125 // Act
126- connection . InsertAll < IdentityTable > ( tables ) ;
126+ connection . InsertAll ( tables ) ;
127127
128128 // Act
129129 var result = await connection . QueryAsync < TAnonymous > ( "[sc].[IdentityTable]" ,
@@ -145,15 +145,15 @@ private static async Task TestQueryAsyncForAnonymousTrigger<TAnonymous>(TAnonymo
145145 public void TestQueryAllForAnonymous ( ) =>
146146 TestQueryAllForAnonymousTrigger ( CreateIdentityTableTypeDef ( ) ) ;
147147
148- private static void TestQueryAllForAnonymousTrigger < TAnonymous > ( TAnonymous typeDef )
148+ private void TestQueryAllForAnonymousTrigger < TAnonymous > ( TAnonymous typeDef )
149149 where TAnonymous : class
150150 {
151151 // Setup
152152 var tables = Helper . CreateIdentityTables ( 10 ) ;
153153
154- using var connection = new SqlConnection ( Database . ConnectionStringForRepoDb ) ;
154+ using var connection = CreateConnection ( ) ;
155155 // Act
156- connection . InsertAll < IdentityTable > ( tables ) ;
156+ connection . InsertAll ( tables ) ;
157157
158158 // Act
159159 var result = connection . QueryAll < TAnonymous > ( "[sc].[IdentityTable]" ) ;
@@ -170,15 +170,15 @@ private static void TestQueryAllForAnonymousTrigger<TAnonymous>(TAnonymous typeD
170170 public async Task TestQueryAllAsyncForAnonymous ( ) =>
171171 await TestQueryAllAsyncForAnonymousTrigger ( CreateIdentityTableTypeDef ( ) ) ;
172172
173- private static async Task TestQueryAllAsyncForAnonymousTrigger < TAnonymous > ( TAnonymous typeDef )
173+ private async Task TestQueryAllAsyncForAnonymousTrigger < TAnonymous > ( TAnonymous typeDef )
174174 where TAnonymous : class
175175 {
176176 // Setup
177177 var tables = Helper . CreateIdentityTables ( 10 ) ;
178178
179- using var connection = new SqlConnection ( Database . ConnectionStringForRepoDb ) ;
179+ using var connection = CreateConnection ( ) ;
180180 // Act
181- connection . InsertAll < IdentityTable > ( tables ) ;
181+ connection . InsertAll ( tables ) ;
182182
183183 // Act
184184 var result = await connection . QueryAllAsync < TAnonymous > ( "[sc].[IdentityTable]" ) ;
0 commit comments