Creating automated tests is essential for writing code that is maintainable and bug free, but Dynamics 365/CDS/CRM is extremely difficult to write these tests for using standard mocking libraries like Rhino mock or MsFakes. This course will give you the tools and experience needed to start writing your C# unit tests today with XrmUnitTest (an open source Xrm faking framework), and enjoying the benefit derived from them for the length of the project.
Daryl LaBar, 3-time MVP, developer, blogger, public speaker and creator of XrmUnitTest, will lead you through this course, explaining why unit testing is so valuable for Xrm/CDS Developers, and walking you through labs where you can learn to create and write your own unit tests. At the end of the training, most developers will be able to create a fully completed plugin with a unit test, faster than before the training when they just would have created a plugin.
This is a must for anyone wanting to learn how to start unit testing their C# code that interacts with the Xrm SDK. This includes Plugins, Custom Workflow Activities or any C# project that makes calls to CRM.
• Learn how to add an example plugin with unit tests to a new/existing solution in less than 60 seconds.
• Create tests that can be ran either against CRM/CDS or on your local machine
• Discover how to make use of assumptions to auto fake data for local test.
• Use entity builders to create test data with minimal code.
Audience: C# developers who code for or want to code for the Xrm/Crm/CDS platform.
Prerequisites: It is expected that attendees will have at least a basic knowledge of C#. No prior unit testing knowledge required.
Preparation: Please bring your own internet capable Windows PC to class for the hands on lab portion/class exercises.
Computer Requirements: Visual Studio, Plugin Registration tool, XrmToolBox