@@ -689,7 +689,7 @@ internal void TryGetIntegrationDetails_CorrectNameGenerated(Type commandType, st
689689 var command = ( IDbCommand ) Activator . CreateInstance ( commandType ) ! ;
690690 command . CommandText = DbmCommandText ;
691691
692- bool result = DbScopeFactory . TryGetIntegrationDetails ( command . GetType ( ) . FullName , out var actualIntegrationId , out var actualDbType ) ;
692+ bool result = DbScopeFactory . TryGetIntegrationDetails ( [ ] , command . GetType ( ) . FullName , out var actualIntegrationId , out var actualDbType ) ;
693693 Assert . True ( result ) ;
694694 Assert . Equal ( expectedIntegrationName , actualIntegrationId . ToString ( ) ) ;
695695 Assert . Equal ( expectedDbType , actualDbType ) ;
@@ -698,12 +698,12 @@ internal void TryGetIntegrationDetails_CorrectNameGenerated(Type commandType, st
698698 [ Fact ]
699699 internal void TryGetIntegrationDetails_FailsForKnownCommandType ( )
700700 {
701- bool result = DbScopeFactory . TryGetIntegrationDetails ( "InterceptableDbCommand" , out var actualIntegrationId , out var actualDbType ) ;
701+ bool result = DbScopeFactory . TryGetIntegrationDetails ( [ ] , "InterceptableDbCommand" , out var actualIntegrationId , out var actualDbType ) ;
702702 Assert . False ( result ) ;
703703 Assert . False ( actualIntegrationId . HasValue ) ;
704704 Assert . Null ( actualDbType ) ;
705705
706- bool result2 = DbScopeFactory . TryGetIntegrationDetails ( "ProfiledDbCommand" , out var actualIntegrationId2 , out var actualDbType2 ) ;
706+ bool result2 = DbScopeFactory . TryGetIntegrationDetails ( [ ] , "ProfiledDbCommand" , out var actualIntegrationId2 , out var actualDbType2 ) ;
707707 Assert . False ( result2 ) ;
708708 Assert . False ( actualIntegrationId2 . HasValue ) ;
709709 Assert . Null ( actualDbType2 ) ;
@@ -712,18 +712,18 @@ internal void TryGetIntegrationDetails_FailsForKnownCommandType()
712712 [ Fact ]
713713 internal void TryGetIntegrationDetails_FailsForKnownCommandTypes_AndUserDefined ( )
714714 {
715- Tracer . Configure ( TracerSettings . Create ( new Dictionary < string , object > { { ConfigurationKeys . DisabledAdoNetCommandTypes , "SomeFakeDbCommand" } } ) ) ;
716- bool result = DbScopeFactory . TryGetIntegrationDetails ( "InterceptableDbCommand" , out var actualIntegrationId , out var actualDbType ) ;
715+ HashSet < string > disabledCommandTypes = [ "SomeFakeDbCommand" ] ;
716+ bool result = DbScopeFactory . TryGetIntegrationDetails ( disabledCommandTypes , "InterceptableDbCommand" , out var actualIntegrationId , out var actualDbType ) ;
717717 Assert . False ( result ) ;
718718 Assert . False ( actualIntegrationId . HasValue ) ;
719719 Assert . Null ( actualDbType ) ;
720720
721- bool result2 = DbScopeFactory . TryGetIntegrationDetails ( "ProfiledDbCommand" , out var actualIntegrationId2 , out var actualDbType2 ) ;
721+ bool result2 = DbScopeFactory . TryGetIntegrationDetails ( disabledCommandTypes , "ProfiledDbCommand" , out var actualIntegrationId2 , out var actualDbType2 ) ;
722722 Assert . False ( result2 ) ;
723723 Assert . False ( actualIntegrationId2 . HasValue ) ;
724724 Assert . Null ( actualDbType2 ) ;
725725
726- bool result3 = DbScopeFactory . TryGetIntegrationDetails ( "SomeFakeDbCommand" , out var actualIntegrationId3 , out var actualDbType3 ) ;
726+ bool result3 = DbScopeFactory . TryGetIntegrationDetails ( disabledCommandTypes , "SomeFakeDbCommand" , out var actualIntegrationId3 , out var actualDbType3 ) ;
727727 Assert . False ( result3 ) ;
728728 Assert . False ( actualIntegrationId3 . HasValue ) ;
729729 Assert . Null ( actualDbType3 ) ;
@@ -740,7 +740,7 @@ internal void TryGetIntegrationDetails_FailsForKnownCommandTypes_AndUserDefined(
740740 [ InlineData ( "Custom.DB.Command" , "AdoNet" , "db" ) ]
741741 internal void TryGetIntegrationDetails_CustomCommandType ( string commandTypeFullName , string integrationId , string expectedDbType )
742742 {
743- DbScopeFactory . TryGetIntegrationDetails ( commandTypeFullName , out var actualIntegrationId , out var actualDbType ) ;
743+ DbScopeFactory . TryGetIntegrationDetails ( [ ] , commandTypeFullName , out var actualIntegrationId , out var actualDbType ) ;
744744 Assert . Equal ( integrationId , actualIntegrationId ? . ToString ( ) ) ;
745745 Assert . Equal ( expectedDbType , actualDbType ) ;
746746 }
0 commit comments