예제 #1
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);
        }
예제 #2
0
        public async Task BuildsServiceBusClientWithConnectionString()
        {
            var sut = new AzureServiceBusClientBuilder(_connectionString, _topic, _subscription);
            var messageBusClient = await sut.BuildMessageBusClientAsync();

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