« Distant Shores - A Visual Studio Color S... | Main | Async Pipelines and PipelineReader<T&... »
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.
About
Tomas Restrepo is co-founder of devdeo. His interests include .NET, Connected Systems, PowerShell and, lately, dynamic programming languages. More...
email: tomas@winterdom.com msn: tomasr@passport.com twitter: tomasrestrepo
Technorati Profile
Syndicate
Ads
Links
Categories
Statistics
Blogroll
Post Archive
Other
Copyright © 2002-2008, Tomas Restrepo.
Powered by: newtelligence dasBlog 2.1.8102.813