I’ve just uploaded a new version of my PipelineTesting library.
This one contains just a few minor modifications: A few improved unit tests, and new
methods to make it easier to create multi-part messages to use as pipeline inputs.
Here’s an example of the last one:
IBaseMessage message = MessageHelper.Create(
"<body>This is the body part (part1)</body>",
"<body>This is the part2</body>",
"<body>This is the part3</body>"
);
Assert.AreEqual(3, message.PartCount);
The new MessageHelper.Create() method takes a params array of strings as argument.
Each one will get loaded as a separate message part, with the first one being marked
as the body part. There’s also a second overload which takes a params array of Stream
objects.
As usual, you can download the code from here: PipelineTesting.zip.
BizTalk
Server, Testing
Server, Testing