Example #1
0
        public void a_servicebusqueues_address_is_given()
        {
            var extraHost = ".servicebus.windows.net";

            _extended = GetUri(extraHost);
            _normal   = GetUri("");

            _addressExtended = AzureServiceBusEndpointAddressImpl.Parse(_extended);
            _address         = AzureServiceBusEndpointAddressImpl.Parse(_normal);
        }
Example #2
0
        public void a_normal_address_and_its_topic_corresponding_address()
        {
            _queueAddress = AzureServiceBusEndpointAddressImpl.Parse(
                TestDataFactory.ApplicationEndpoint);

            var formatter = new AzureMessageNameFormatter();

            _topicName = formatter.GetMessageName(typeof(A)).ToString();

            _topicAddress = _queueAddress.ForTopic(_topicName);

            Assert.Throws <ArgumentNullException>(
                () => _queueAddress.ForTopic(null));
        }
Example #3
0
 public void a_servicebusqueues_address_is_given()
 {
     _address = AzureServiceBusEndpointAddressImpl.Parse(
         TestDataFactory.ApplicationEndpoint);
 }
Example #4
0
 public static AzureServiceBusEndpointAddress GetAddress()
 {
     return(AzureServiceBusEndpointAddressImpl.Parse(ApplicationEndpoint));
 }