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