File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 66
77namespace MssqlMcp . Tests
88{
9- public sealed class MssqlMcpTests
9+ public sealed class MssqlMcpTests : IDisposable
1010 {
1111 private readonly string _tableName ;
1212 private readonly Tools _tools ;
@@ -18,7 +18,7 @@ public MssqlMcpTests()
1818 _tools = new Tools ( connectionFactory , loggerMock . Object ) ;
1919 }
2020
21- internal void Dispose ( )
21+ public void Dispose ( )
2222 {
2323 // Cleanup: Drop the table after each test
2424 var _ = _tools . DropTable ( $ "DROP TABLE IF EXISTS { _tableName } ") . GetAwaiter ( ) . GetResult ( ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public async Task<DbOperationResult> ReadData(
2323 while ( await reader . ReadAsync ( ) )
2424 {
2525 var row = new Dictionary < string , object ? > ( ) ;
26- for ( int i = 0 ; i < reader . FieldCount ; i ++ )
26+ for ( var i = 0 ; i < reader . FieldCount ; i ++ )
2727 {
2828 row [ reader . GetName ( i ) ] = reader . IsDBNull ( i ) ? null : reader . GetValue ( i ) ;
2929 }
You can’t perform that action at this time.
0 commit comments