From 0d49f5bbc6a068f5d7e5c5dcb57d6ba95a33ddd2 Mon Sep 17 00:00:00 2001 From: Ashish Vishwakarma Date: Thu, 15 Mar 2018 01:07:25 +0530 Subject: [PATCH] Added documentation --- README.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ba0507c..9f22742 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,24 @@ -# Dynamics 365 Console Caller -Boilerplate code for testing Dynamics 365 / CRM code locally +This code has been written with only intention to save developer's time while testing Dynamics 365 code which requires connection to CRM organization & **IOrganizationService** and/or **ITracingService** instances. + +To usse it just download this project, open in Visual Studio and build to restore nugget packages, open **Program.cs**(below code) and provide credentials to GetOrganizationService method +```csharp +class Program +{ + static void Main(string[] args) + { + IOrganizationService orgService = Connect.GetOrganizationService( + "@.onmicrosoft.com", + "", + ""); + Console.WriteLine("Connected to Organization Service!"); + + ITracingService tracingService = Connect.GetTracingService("AshV_Log"); + + // Write your code tobe tested here. + } +} +``` + +* To test code snippet just write/paste your code at mentioned place and simply run/debug. + +* You can even add references to DLLs in this project and call public methods.