Exemple #1
0
        public void CreateMessagingFactoryAsync_ReturnsExpectedFactory()
        {
            // default connection
            MessagingFactory factory = _provider.CreateMessagingFactory("test");

            Assert.Equal("default.servicebus.windows.net", factory.Address.Host);

            // override connection
            factory = _provider.CreateMessagingFactory("test", "ServiceBusOverride");
            Assert.Equal("override.servicebus.windows.net", factory.Address.Host);
        }