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);
        }
        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);
        }
        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);
        }