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

Testing BizTalk solutions with BizMock


BizMock is a framework for testing BizTalk solutions. It has been developed by Pierre Milet Llobet. It is available through CodePlex. BizMock uses a Domain Driven Design (DDD) approach, fluent interface API, and has mocking capabilities. The latter means you do not need to depend on an infrastructure, such as a database, as you isolate the tests on the developer machine or build server.

The tests you write are executed with Visual Studio using its regular tests and C# code. With BizMock, you can quickly test your orchestrations, schemas, maps, and pipelines by writing unit tests that can emulate the messages received at the Receive ports and validate messages sent from the Send ports.

In this recipe, we will follow the typical steps for the BizMock test project:

  1. Deploy your BizTalk orchestration, pipeline, or map.

  2. Create a test project and add the BizMock assembly references.

  3. Add the artifacts.tt and artifacts.xml file to the test project.

  4. Modify artifacts...