Create a new unit test project under your existing solution called Packt.Xrm.UnitTest.
Add a reference to the Moq NuGet package as well as Microsoft.CrmSdk.CoreAssemblies.
Add a reference to your existing Packt.Xrm.Extensions (refactored) project.
Create a new Basic Unit Test class called EmailUpdateBusinessLogicTest.
Add the following using statements:
using Packt.Xrm.Extensions.BusinessLogic; using Packt.Xrm.Extensions.DataAccessLayer; using Moq; using Packt.Xrm.Entities; using Microsoft.Xrm.Sdk; using System.Collections.Generic;