コード例 #1
0
        public void CanAcceptMessageWithoutHeaders()
        {
            var endpointNodeStrategy = new LogicalRoutingNodeStrategy();
            var messageNodeStrategy = new CollapseMessagesToSameReceiverMessageNodeStrategy(endpointNodeStrategy);
            var nodeStrategy = new NodeStrategy(endpointNodeStrategy, messageNodeStrategy);
            var modelBuilder = new ModelBuilder(nodeStrategy);

            var message = new ProcessedMessage
            {
                Headers = new Dictionary<string, string>()
            };

            Assert.DoesNotThrow(
                () => modelBuilder.Accept(message)
            );
        }
コード例 #2
0
        public void CanAcceptMessageWithoutHeaders()
        {
            var endpointNodeStrategy = new LogicalRoutingNodeStrategy();
            var messageNodeStrategy  = new CollapseMessagesToSameReceiverMessageNodeStrategy(endpointNodeStrategy);
            var nodeStrategy         = new NodeStrategy(endpointNodeStrategy, messageNodeStrategy);
            var modelBuilder         = new ModelBuilder(nodeStrategy);

            var message = new ProcessedMessage
            {
                Headers = new Dictionary <string, string>()
            };

            Assert.DoesNotThrow(
                () => modelBuilder.Accept(message)
                );
        }