public async Task SmokeIdentityTestASample(IEventHubsIdentitySample sample)
 {
     await using (EventHubScope scope = await EventHubScope.CreateAsync(2))
     {
         Assert.That(async() => await sample.RunAsync(TestEnvironment.FullyQualifiedNamespace,
                                                      scope.EventHubName,
                                                      TestEnvironment.EventHubsTenant,
                                                      TestEnvironment.EventHubsClient,
                                                      TestEnvironment.EventHubsSecret), Throws.Nothing);
     }
 }
        public async Task SmokeIdentityTestASample(IEventHubsIdentitySample sample)
        {
            await using (EventHubScope scope = await EventHubScope.CreateAsync(2))
            {
                var connectionString = TestEnvironment.BuildConnectionStringForEventHub(scope.EventHubName);
                ConnectionStringProperties properties = ConnectionStringParser.Parse(connectionString);

                Assert.That(async() => await sample.RunAsync(properties.Endpoint.Host,
                                                             scope.EventHubName,
                                                             TestEnvironment.EventHubsTenant,
                                                             TestEnvironment.EventHubsClient,
                                                             TestEnvironment.EventHubsSecret), Throws.Nothing);
            }
        }