Skip to content

A Starter Dynamics Plugin for CRM Online with spkl testing built in with examples.

License

Notifications You must be signed in to change notification settings

carltoncolter/DynamicsPlugin

Repository files navigation

DynamicsPlugin

The DynamicsPlugin solution is a starter solution for developing Dynamics CRM 365 plugins for CRM Online.

It simplifies developing plugins by:

  1. Providing a base class that includes a LocalPluginContext that:
    • Helps get attribute values from the entity images as well as the target
    • Provides quick and easy access to simplify tracing
    • Provides additional checks for valid entity types and message types
    • Handles the access to the OrganizationService
  2. Provides a starter Test Solution that uses spkl.fakes, which is part of Scott Durrow's SparkleXrm library and spkl.fakes is available as a nuget package.
  3. Provides a restricted sandbox for testing to help ensure you are writing code that is usable in crm online.

All of this is to help simplify test driven development for plugins. There are a few tests that test the base plugin by testing for failures handling invalid entity names, etc.

⚠️ The plugin is not signed, and it must be. There is an Assembly test to make sure the plugin is signed, so right out the gate there is a failed test that needs to resolved!

❓ If you have any problems, please post it in the issues.

ℹ️ If you would like more information on spkl.fakes, check out: https://github.com/scottdurow/SparkleXrm/wiki/spkl.fakes

ℹ️ If you have pluralsight, Justin Pihony has a great session on Patterns for Pragmaytic Unit Testing. He also references a number of other lessons, sessions, and videos that would help anyone get started with unit testing. He does use NUnit in his video, but that is pretty easy to map over to MSTest using this simple article on msdn by Naysawn Naderi.

About

A Starter Dynamics Plugin for CRM Online with spkl testing built in with examples.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published