Book Image

BizTalk Server 2010 Cookbook

By : Steef-Jan Wiggers
Book Image

BizTalk Server 2010 Cookbook

By: Steef-Jan Wiggers

Overview of this book

BizTalk enables the integration and managment of automated business processes within or across organizational boundaries. To build a solid BizTalk solution, deploy a robust environment, and keep it running smoothly you sometimes need to broaden your spectrum, explore all possibilities, and choose the best solution for your purpose. By following the recipes in this book you will gain required knowledge and succeed in your implementation. With BizTalk Server 2010 Cookbook, you can leverage and hone your skills. More than 50 recipes will guide you in implementing BizTalk solutions, setting up a robust and well performing BizTalk environment, and choosing the right solution for monitoring it. As a developer or administrator you greatly benefit from taking these recipes to work. In this book a developer and administrator will see how to deploy, build, and maintain a BizTalk environment. How to apply patterns for robust orchestrations, messaging and testing. Administrators will learn to set up an environment using Microsoft best practices and tools to deliver a robust, performing and durable BizTalk environment. Besides setting up their environments administrators can also decide through a number of recipes how to monitor and maintain the environment. A developer can contribute to a healthy environment by implementing instrumentation in artefacts, applying well suited pattern(s) and testing the solutions built.
Table of Contents (17 chapters)
BizTalk Server 2010 Cookbook
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Unit testing a BizTalk solution with BizUnit


BizUnit is a framework for testing BizTalk artifacts. It offers a flexible and extensible declarative test framework. The BizUnit framework has no dependency on Visual Studio unit testing. Yet, you can leverage the framework in the Visual Studio Test Project.

A developer authors the BizUnit test case(s) in XML or code (BizUnit object model), and by doing so he/she configures how the test framework should execute the case(s). A test case is made up of three stages:

  • Test setup

  • Test execution

  • Test cleanup

Each stage in a test case can have zero or more test steps, and these test steps are, in general, autonomous. This means that the state can be flowed between each state if required by using the context object which is passed to each test step by the framework.

Currently, BizUnit is at its fourth version supporting BizTalk 2010 (.NET 4.0) and this recipe will show how to use BizUnit 4.0 to unit test an orchestration in BizTalk 2010. The test case demonstrated...