Esempio n. 1
0
        public void parse_durable_uri_with_only_queue()
        {
            var endpoint = new AzureServiceBusEndpoint();

            endpoint.Parse(new Uri("asb://queue/q1/durable"));

            endpoint.Mode.ShouldBe(EndpointMode.Durable);
            endpoint.QueueName.ShouldBe("q1");
        }
Esempio n. 2
0
        public void parse_durable_uri()
        {
            var endpoint = new AzureServiceBusEndpoint();

            endpoint.Parse(new Uri("asb://subscription/sub1/topic/key1/durable"));

            endpoint.Mode.ShouldBe(EndpointMode.Durable);
            endpoint.SubscriptionName.ShouldBe("sub1");
            endpoint.TopicName.ShouldBe("key1");
        }