In 2012 I created a TestTool to test Business Rules that you can use in the ESB Toolkit for BizTalk 2010. (See the post: Testing ESB Toolkit 2.1 Business Rules for BizTalk 2010) The sample was downloaded over 350 times so I thought maybe it would be nice to port it to BizTalk 2013 and add some features to the tool!
The following changes and additions have been made:
- The sample project ported to the .NET framework 4.5 with Visual Studio 2012.
- Show trace output from the BRE engine in the Tool.
- Test if the Itinerary that is resolved with Business Rules also exists in the Itinerary Store database and display it in the Tool.
- Test if the Map that is resolved with Business Rules also exists in the GAC, execute it and display the result in the Tool.
- Some small changes in the user interaction.
Using the Tool
With the sample Tool policies can be tested that have one of the following vocabularies from the ESB Toolkit:
- ESB.EndPointInfo
- Set the Outbound Transport Location properties of a Send Port.
- ESB.TransformInfo
- Set the Transform Type.
- ESB.Itinerary
- Set the Itinerary Name.
Conclusion
The sample is designed for BizTalk 2013 but if you want to use it for BizTalk 2010 you can change the target framework and remove the custom MapHelper class that performs the BizTalk transformations. Add a reference again to the ESB.TransformServices.dll assembly from the ESB Toolkit and use these classes to call a BizTalk map.
You can download the sample tool with the source code here:
Testing Business Rules in ESB toolkit 2.2 for BizTalk 2013