コード例 #1
0
        public void Should_always_be_fanout()
        {
            // Arrange
            var routeFinder = new DefaultFanoutRpcRequestRouteFinder<ISomeService>();

            // Action
            var exchangeType = routeFinder.RequestExchangeType;

            // Assert
            Assert.AreEqual("fanout", exchangeType);
        }
コード例 #2
0
        public void Should_return_provided_request_queue_if_it_not_null_or_empty()
        {
            // Arrange
            var routeFinder = new DefaultFanoutRpcRequestRouteFinder<ISomeService>(requestQueueName: "RequestQueue");

            // Action
            var requestQueue = routeFinder.RequestQueue;

            // Assert
            Assert.AreEqual("RequestQueue", requestQueue);
        }
コード例 #3
0
        public void Should_return_request_queue_name_with_serverId_if_provided_request_queue_is_null_or_empty()
        {
            // Arrange
            var routeFinder = new DefaultFanoutRpcRequestRouteFinder<ISomeService>("UnitTest", requestQueueName: "");

            // Action
            var requestQueue = routeFinder.RequestQueue;

            // Assert
            Assert.AreEqual("Burrow.Queue.Rpc.UnitTest.ISomeService.Requests", requestQueue);
        }
コード例 #4
0
        public void Should_return_not_empty_string()
        {
            // Arrange
            var routeFinder = new DefaultFanoutRpcRequestRouteFinder <ISomeService>();

            // Action
            var exchangeName = routeFinder.RequestExchangeName;

            // Assert
            Assert.AreEqual("Burrow.Exchange.FANOUT.Rpc.ISomeService.Requests", exchangeName);
        }
コード例 #5
0
        public void Should_always_be_fanout()
        {
            // Arrange
            var routeFinder = new DefaultFanoutRpcRequestRouteFinder <ISomeService>();

            // Action
            var exchangeType = routeFinder.RequestExchangeType;

            // Assert
            Assert.AreEqual("fanout", exchangeType);
        }
コード例 #6
0
        public void Should_return_request_queue_name_with_serverId_if_provided_request_queue_is_null_or_empty()
        {
            // Arrange
            var routeFinder = new DefaultFanoutRpcRequestRouteFinder <ISomeService>("UnitTest", requestQueueName: "");

            // Action
            var requestQueue = routeFinder.RequestQueue;

            // Assert
            Assert.AreEqual("Burrow.Queue.Rpc.UnitTest.ISomeService.Requests", requestQueue);
        }
コード例 #7
0
        public void Should_return_provided_request_queue_if_it_not_null_or_empty()
        {
            // Arrange
            var routeFinder = new DefaultFanoutRpcRequestRouteFinder <ISomeService>(requestQueueName: "RequestQueue");

            // Action
            var requestQueue = routeFinder.RequestQueue;

            // Assert
            Assert.AreEqual("RequestQueue", requestQueue);
        }
コード例 #8
0
        public void Should_return_not_empty_string()
        {
            // Arrange
            var routeFinder = new DefaultFanoutRpcRequestRouteFinder<ISomeService>();

            // Action
            var exchangeName = routeFinder.RequestExchangeName;

            // Assert
            Assert.AreEqual("Burrow.Exchange.FANOUT.Rpc.ISomeService.Requests", exchangeName);
        }