Darrell Tunnell's Blog (Page 6)

Exploring Software in all it's guises

ASP.NET 5 (vNext) Projects - Your NuGet Package May Fail to Install Correctly

Explains a breaking change in ASP.NET 5 affecting NuGet package install scripts and how it impacts package authors.

Over the past year or so, I have authored a number of NuGet packages - because, well... I am just an all around great guy.

Recently, I was contacted by someone who was trying to use one of my NuGet packages with an ASP.NET vNext project (Preview release). Not something I have tried before - and this is where things get a little interesting.

Read more...

CRM / Plugin Generated Values - and Reducing Roundtrips!

Reduce roundtrips in Dynamics CRM by leveraging ExecuteMultipleRequest to retrieve plugin-generated values more efficiently.

Imagine we have an application that uses the CRM SDK. It needs to:

The 'I don't care about network latency' way of dealing with this is to just do 2 seperate Requests (roundtrips) with the CRM server.

This approach is sub optimal where network latency is a concern, as it incurs the penalty of making two roundtrips accross the network with the server, where 1 is possible.

Let's now have a look at the "I'm running on a 56k modem method" of doing the same thing!

Read more...

Unit Testing Dynamics CRM Plugins

A practical guide to unit testing CRM plugins without mocking every dependency, using isolation and override techniques.

The purpose of this post will be to look at the code for a fairly typical looking crm plugin, and examine how to implement a unit test with the least possible effort. Reduced Effort == Reduced Person Hours == Reduced Cost.

Remember, this is Unit Testing, not Integration testing - so at test time - there is no CRM!

Read more...