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:
Deploy your BizTalk orchestration, pipeline, or map.
Create a test project and add the BizMock assembly references.
Add the
artifacts.tt
andartifacts.xml
file to the test project.Modify
artifacts...