@@ -73,7 +73,7 @@ public async Task WriteBatchCallsSqlConnectionFactoryCreate()
73
73
}
74
74
75
75
[ Fact ]
76
- public async Task WriteBatchCallsSqlConnectionWrapperOpen ( )
76
+ public async Task WriteBatchCallsSqlConnectionWrapperOpenAsync ( )
77
77
{
78
78
// Arrange
79
79
var logEvents = CreateLogEvents ( ) ;
@@ -95,7 +95,7 @@ public async Task WriteBatchCallsSqlConnectionWrappeCreateCommand()
95
95
await _sut . WriteBatch ( logEvents , null ) ;
96
96
97
97
// Assert
98
- _sqlConnectionWrapperMock . Verify ( c => c . CreateCommand ( ) , Times . AtLeastOnce ) ;
98
+ _sqlConnectionWrapperMock . Verify ( c => c . CreateCommand ( ) , Times . Exactly ( logEvents . Count ) ) ;
99
99
}
100
100
101
101
[ Fact ]
@@ -169,7 +169,7 @@ public async Task WriteBatchCallsSqlCommandWrapperExecuteNonQueryAsync()
169
169
await _sut . WriteBatch ( logEvents , null ) ;
170
170
171
171
// Assert
172
- _sqlCommandWrapperMock . Verify ( c => c . ExecuteNonQueryAsync ( ) , Times . AtLeastOnce ) ;
172
+ _sqlCommandWrapperMock . Verify ( c => c . ExecuteNonQueryAsync ( ) , Times . Exactly ( logEvents . Count ) ) ;
173
173
}
174
174
175
175
[ Fact ]
@@ -182,7 +182,7 @@ public async Task WriteBatchCallsSqlCommandWrapperDispose()
182
182
await _sut . WriteBatch ( logEvents , null ) ;
183
183
184
184
// Assert
185
- _sqlCommandWrapperMock . Verify ( c => c . Dispose ( ) , Times . AtLeastOnce ) ;
185
+ _sqlCommandWrapperMock . Verify ( c => c . Dispose ( ) , Times . Exactly ( logEvents . Count ) ) ;
186
186
}
187
187
188
188
[ Fact ]
@@ -247,7 +247,7 @@ public async Task WriteBatchRethrowsIfSqlCommandAddParameterThrows()
247
247
}
248
248
249
249
[ Fact ]
250
- public async Task WriteBatchRethrowsIfSqlCommandExecuteNonQueryThrows ( )
250
+ public async Task WriteBatchRethrowsIfSqlCommandExecuteNonQueryAsyncThrows ( )
251
251
{
252
252
// Arrange
253
253
_sqlCommandWrapperMock . Setup ( c => c . ExecuteNonQueryAsync ( ) ) . Callback ( ( ) => throw new InvalidOperationException ( ) ) ;
0 commit comments