This PR fixes an issue identified in #1571 where the BrokerAddress property had a wrong value when authenticating with TokenCredential instead of ConnectionString.
Issue(s) addressed:
No specific issue was opened.
Changes:
Added:
ServiceBusHelpers class with helper methods and test class ServiceBusHelpersTests.
Tests to verify BrokerAddress property in ServiceBusTransportTests class.
Changed:
BrokerAddress property getter in classes AzureServiceBusConsumerClient and ITransport.AzureServiceBus.
Affected components:
Azure Service Bus transport.
How to test:
N/A.
Additional notes (optional):
Checklist:
[X] I have tested my changes locally
[ ] I have added necessary documentation (non-applicable)
[X] I have updated the relevant tests
[X] My changes follow the project's code style guidelines
Description:
This PR fixes an issue identified in #1571 where the BrokerAddress property had a wrong value when authenticating with TokenCredential instead of ConnectionString.
Issue(s) addressed:
No specific issue was opened.
Changes:
ServiceBusHelpers
class with helper methods and test classServiceBusHelpersTests
.ServiceBusTransportTests
class.AzureServiceBusConsumerClient
andITransport.AzureServiceBus
.Affected components:
How to test:
Additional notes (optional):
Checklist:
Reviewers:
@yang-xiaodong