BizTalk testing maps with multiple xml input or is this a C # Inline issue?
Can someone explain how to get the multi-input BizTalk cards unit tests to work?
I happily used the examples on the Michael Stephenson blog to test my maps, but I just tried my first multiple input maps and it doesn't work :-(
I used the VS2005 "test card" to first instantiate an input with two input messages and then use flavors of that file as test inputs ...
<ns0:Root xmlns:ns0="http://schemas.microsoft.com/BizTalk/2003/aggschema">
<InputMessagePart_0>
...
</InputMessagePart_0>
<InputMessagePart_1>
...
</InputMessagePart_1>
</ns0:Root>
These test messages generate the expected output when I use the VS testcard, but the section is missing when trying to unit tests.
The only thing I can think of is the map has some functoids in ... Scripting, Table Screen and Table Loop ...
unit test calls StreamingTransform.ScalableTransform ...
// This is the BizTalk Server 2006 way of calling
mapInstance.StreamingTransform.Transform(inputStream,
mapInstance.TransformArgs, outputStream, resolver);
// This is the R2 way of calling
XmlReader xmlRdr = new XmlTextReader(inputStream);
mapInstance.StreamingTransform.ScalableTransform(xmlRdr,
mapInstance.TransformArgs, outputStream,
resolver, whitespaceCorrect);
and the alternative approach to using Transform.Transform doesn't work either ...
XPathDocument doc = new XPathDocument(inputStream);
mapInstance.Transform.Transform(doc, mapInstance.TransformArgs, outputStream);
+1
a source to share