Exemple #1
0
        public async Task BuildsServiceBusAdminClientWithConnectionString()
        {
            var sut = new AzureServiceBusClientBuilder(_connectionString, _topic, _subscription);
            var messageBusAdminClient = await sut.BuildMessageBusAdminClientAsync();

            Assert.IsAssignableFrom <IMessageBusAdminClient>(messageBusAdminClient);
            Assert.IsAssignableFrom <AzureServiceBusAdminClient>(messageBusAdminClient);
        }
Exemple #2
0
        public async Task BuildsServiceBusClientWithManagedIdentity()
        {
            var sut = new AzureServiceBusClientBuilder(_hostname, _topic, _subscription, _tenantId);
            var messageBusClient = await sut.BuildMessageBusClientAsync();

            Assert.IsAssignableFrom <IMessageBusClient>(messageBusClient);
            Assert.IsAssignableFrom <AzureServiceBusClient>(messageBusClient);
        }