Xrm Unit Testing Framework With "In Memory" CRM server
C# Pascal
Clone or download
Permalink
Failed to load latest commit information.
09 Added Testing for ExtendedOrganziationService Testing Jul 17, 2018
2015/XrmUnitTest.2015 Added Testing for ExtendedOrganziationService Testing Jul 17, 2018
2016/XrmUnitTest.2016 Added Testing for ExtendedOrganziationService Testing Jul 17, 2018
Code Snippets Added Ability to have an Any Message Nov 2, 2017
DLaB.Common.Tests Removed extra refs... May 26, 2018
DLaB.Common Successful build and Test May 23, 2018
DLaB.Xrm.Base Added Testing for ExtendedOrganziationService Testing Jul 17, 2018
DLaB.Xrm.Client.Base Moved Get URI to Client Based Calls. This really isn't supported in p… Jul 16, 2018
DLaB.Xrm.Entities Good Build and Test of Shared. May 22, 2018
DLaB.Xrm.LocalCrm.Base Good Build and Test of Shared. May 22, 2018
DLaB.Xrm.LocalCrm.Tests.Base Fix for Fake Opportunity with ParentAccountId and ParentCustomerId #52 Mar 14, 2018
DLaB.Xrm.LocalCrm.Tests Migrated All Projects that Should Shared Projects over to shared proj… Feb 16, 2016
DLaB.Xrm.Test.Base Moved Get URI to Client Based Calls. This really isn't supported in p… Jul 16, 2018
DLaB.Xrm.Test.Tests.Base Good Build and Test of Shared. May 22, 2018
DLaB.Xrm.Test.Tests Migrated All Projects that Should Shared Projects over to shared proj… Feb 16, 2016
DLaB.Xrm.Tests.Base Added Testing for ExtendedOrganziationService Testing Jul 17, 2018
DLaB.Xrm.Tests Migrated All Projects that Should Shared Projects over to shared proj… Feb 16, 2016
Example Added IAddressable example Jul 16, 2018
NMemory.Base Made Explicit operators for converting from SerializableEntities to E… Mar 2, 2016
References Fixed Build via installing Content Files. Sep 26, 2017
SourceProjects/DLaB.Xrm Added Testing for ExtendedOrganziationService Testing Jul 17, 2018
XrmUnitTest.Test.Base Fix for Fake Opportunity with ParentAccountId and ParentCustomerId #52 Mar 14, 2018
.gitattributes Initial Commit Jun 9, 2015
.gitignore Implemented VS 2017 changed path of TFS #49 Aug 3, 2017
DLaB_Dynamics_64x64.png Added Assembly Versioning for Assemblies that will be used else where Dec 23, 2015
LICENSE Initial commit Jun 9, 2015
LINQPadGuidGenerator.txt Fixed issue where Contact and Lead was getting their full name popula… Dec 1, 2016
README.md Fixed Spelling Oct 17, 2016
XrmUnitTest.sln Added Testing for ExtendedOrganziationService Testing Jul 17, 2018
XrmUnitTest.sln.DotSettings Remove Plugin Handler May 22, 2018
XrmUnitTest.sln.metaproj Semi Working version for Sources... Nov 15, 2017

README.md

XrmUnitTest Build status

Join the chat at https://gitter.im/daryllabar/XrmUnitTest

Xrm Unit Testing Framework Provides a long list of features that makes developing Unit Tests in CRM quicker, faster, easier, and more reliable.

What Is It?

XrmUnitTest contains two seperate, but complementary items:

  • DLaB.Xrm - A library of XRM Extensions intended to be used by any XRM project, in any Xrm Plugin. Ever had a QueryExpression, and wished you get generate SQL from the QueryExpression while debugging? Now you can: queryExpression.GetSqlStatement(). Ever wish your plugins had a built in method to prevent recusive lookps? Just inherit from the GenericPluginHandlerBase, they will. Contains both Xrm 2015 and Xrm 2016 versions
  • XrmUnitTest - A XrmUnitTesting framework that is designed to maximize the userfullness of your Unit Tests, while minimizing the amount of time to create or maintain them. You can even utilize the in memory, fake CRM server to test your plugin, before ever deploying it to CRM.

Please check out the Wiki for more information!

How Can I Use It?

There are two methods for utilizing the code base, depending on how you'd like to consume the code base.

  1. Use NuGet - This is by far the quickest and easiet method. Search for and add the NuGet Pacakge "DLaB.Xrm(2015 or 2016)" to your Xrm Plugin\Service Assemblies. Then search for and add the NuGet Package "XrmUnitTest(2015 or 2016)" to your Unit Test projects and base unit test project (See Wiki on what is meant by base unit test project).
  2. Use The Source Directly - The only reason I list this method is for anyone that doesn't want to utilize ILMerge in order to create their CRM Plugin. The classes are all implemented using the new Shared Project functionality in VS 2015, which allow you to reference the source code, without duplicating it. This allows for your plugins to not require any IlMerge when running in a sandboxed (online) environment.

Again, more information is available on the Wiki!

How Can I Help?

XrmUnitTest is designed to be a community focused, open sourced project. There are two main ways to help: Please submit an issue for bugs/feature requests. If you'd like to contir

  1. Create an issue for a bug/feature request. - If you find a bug or have an idea for a new feature or just need something that is missing, please create an issue! There is no better way to make things better than to share.
  2. Submit a Pull Request. - I would highly recommend using the XrmUnitTest Gitter Room, before doing any major coding. It's a great place to discuss what you'd like to do and get an offical blessing before starting any work!

For more information check out the Wiki!