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); }
public async Task BuildsServiceBusClientWithConnectionString() { var sut = new AzureServiceBusClientBuilder(_connectionString, _topic, _subscription); var messageBusClient = await sut.BuildMessageBusClientAsync(); Assert.IsAssignableFrom <IMessageBusClient>(messageBusClient); Assert.IsAssignableFrom <AzureServiceBusClient>(messageBusClient); }