コード例 #1
0
        public void Bind_IfNullBindingData_ReturnsResolvedQueueName()
        {
            const string            queueOrTopicNamePattern = "queue-name-with-no-parameters";
            IBindableServiceBusPath path = new BoundServiceBusPath(queueOrTopicNamePattern);

            string result = path.Bind(null);

            Assert.Equal(queueOrTopicNamePattern, result);
        }
コード例 #2
0
        public void Bind_IfNotNullBindingData_ReturnsResolvedQueueName()
        {
            const string queueOrTopicNamePattern = "queue-name-with-no-parameters";
            var          bindingData             = new Dictionary <string, object> {
                { "name", "value" }
            };
            IBindableServiceBusPath path = new BoundServiceBusPath(queueOrTopicNamePattern);

            string result = path.Bind(bindingData);

            Assert.Equal(queueOrTopicNamePattern, result);
        }