Getting ready

Since we will be unit testing the business logic of the refactored plugin from the Refactoring your plugin using a three-layer pattern recipe from this chapter, we will need the code from that recipe. More specifically, we will need the business logic, the data access layer interfaces, and the generated Dynamics 365 entities (the domain). Our unit test will use the out-of-the-box Visual Studio unit testing capabilities, so you will need a recent stable version of Visual Studio. In this instance, we will be using Visual Studio 2015. For stubbing and mocking, we will be relying on Moq, which is a commonly used mocking framework that has been around for a while and receives ongoing support.

Optionally, a certain degree of familiarity with unit testing is recommended to help you follow this recipe.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.165.180