March 2020
Beginner to intermediate
426 pages
13h 11m
English
This is an open source framework that was developed for unit testing Dynamics 365 CE code. Starting from Dynamics CRM 2011 to Dynamics 365 CE, we can use FakeXrmEasy to unit test our code. The best part of this framework is that it provides mock objects so that we can connect with Dynamics 365 CE. For example, it provides mock objects for IOrganizationService and a plugin context from the memory. Running unit testing becomes easy and fast as it does not connect with actual Dynamics 365 CE service objects.
For example, we can simply use the following lines to get our service and the plugin context object:
var context = new XrmFakedContext();var PlugCtx = context.GetDefaultPluginContext();var service = context.GetFakedOrganizationService(); ...
Read now
Unlock full access