karmagarda.blogspot.com
Karma Garda's Snippet Diary: Mocking out Environment.Exit
http://karmagarda.blogspot.com/2011/12/mocking-out-environmentexit.html
Karma Garda's Snippet Diary. Monday, 5 December 2011. Mocking out Environment.Exit. Question I came across recently on Twitter. How do I write a test when there's an Environment.Exit? Very good question. My answer was basically rewrite the code! A really quick way to do this is create a static action that will allow you to mock it out. What if I created a class called MyEnvironment with this Action:. Exit = exitCode = Environment.Exit(exitCode);. In code I can just replace the call with this:.
karmagarda.blogspot.com
Karma Garda's Snippet Diary: February 2012
http://karmagarda.blogspot.com/2012_02_01_archive.html
Karma Garda's Snippet Diary. Monday, 13 February 2012. I'm retiring this blog as it is linked to an old email address. New blog is here: http:/ conorssnippetdiary.blogspot.com/. Thursday, 2 February 2012. Convention over Configuration - Case sensitivity? Now, my gut reaction is to fix the script to allow for case sensitivity. but after a quick think this feels wrong to me. If we're following convention shouldn't it be case sensitive? I see his point. but I stick by my guns! Subscribe to: Posts (Atom).
karmagarda.blogspot.com
Karma Garda's Snippet Diary: How to post code in blogger... part deux!
http://karmagarda.blogspot.com/2011/09/how-to-post-code-in-blogger-part-deux.html
Karma Garda's Snippet Diary. Tuesday, 27 September 2011. How to post code in blogger. part deux! Ok, after struggling initially with posting code in blogger ( posting html code in blogger. I managed to figure out a much better way to do this. At the time of posting the above I didn't realise the following tags existed:. Now to go back and fix my blog. Note: only a member of this blog may post a comment. Subscribe to: Post Comments (Atom). View my complete profile. MS Dynamics 2011 and MVVM.
karmagarda.blogspot.com
Karma Garda's Snippet Diary: MS Dynamics 2011 and MVVM
http://karmagarda.blogspot.com/2011/09/ms-dynamics-2011-and-mvvm.html
Karma Garda's Snippet Diary. Monday, 19 September 2011. MS Dynamics 2011 and MVVM. So, I've been out of the Microsoft Dynamics world for about a year now (and semi AWOL in the process! But after changing jobs I find myself back in this world using 2011. First up, Silverlight! Now, I have have started to notice quite a bit that a lot of samples or guides on CRM 2011 and Silverlight don't seem to use MVVM. Why on earth is that? So, why would we not use MVVM in Dynamics 2011? Private string userId;. Deploym...
karmagarda.blogspot.com
Karma Garda's Snippet Diary: November 2011
http://karmagarda.blogspot.com/2011_11_01_archive.html
Karma Garda's Snippet Diary. Thursday, 24 November 2011. Dynamics CRM 2011 - unable to unregister plugin. Here's a way to see this in action:. 1 Create a basic plugin called something like "TestPlugin". 2 Copy the plugin dll to the server/bin/assembly folder. 3 Register this plugin using the "Disk" option using the PluginRegistrationTool. 4 Test the plugin (so that it is loaded and activated). 5 Go back to the code and change the plugin name to something like "TestPluginNameChange". 4 If this still fails...
karmagarda.blogspot.com
Karma Garda's Snippet Diary: October 2011
http://karmagarda.blogspot.com/2011_10_01_archive.html
Karma Garda's Snippet Diary. Tuesday, 25 October 2011. Silverlight, JSON and dynamic types. Todays Dynamics 2011 task was to investigate using JSON within a Silverlight control. I started this task with high levels of excitement being new to the whole restful/JSON scene. Yes, I know, I am a bit of a late-comer here! A quick google on how I do this results in me writing the following snippet:. Var proxy = new WebClient();. ProxyOpenReadCompleted = proxy OpenReadCompleted;. Calling the following method.
karmagarda.blogspot.com
Karma Garda's Snippet Diary: November 2009
http://karmagarda.blogspot.com/2009_11_01_archive.html
Karma Garda's Snippet Diary. Friday, 13 November 2009. SQL Server - How do I select just the date portion of a datetime field. There are a few ways to do this, but I find the easiest is to use the float version of a datetime and crop off the decimal portion (right of the decimal place is the time portion). SET @currentDate = Cast(Floor(Cast(GetDate() as Float ) As DateTime). Subscribe to: Posts (Atom). View my complete profile. SQL Server - How do I select just the date portion.
karmagarda.blogspot.com
Karma Garda's Snippet Diary: September 2011
http://karmagarda.blogspot.com/2011_09_01_archive.html
Karma Garda's Snippet Diary. Tuesday, 27 September 2011. How to post code in blogger. part deux! Ok, after struggling initially with posting code in blogger ( posting html code in blogger. I managed to figure out a much better way to do this. At the time of posting the above I didn't realise the following tags existed:. Now to go back and fix my blog. Monday, 19 September 2011. MS Dynamics 2011 and MVVM. So, I've been out of the Microsoft Dynamics world for about a year now (and semi AWOL in the process!
karmagarda.blogspot.com
Karma Garda's Snippet Diary: December 2011
http://karmagarda.blogspot.com/2011_12_01_archive.html
Karma Garda's Snippet Diary. Monday, 5 December 2011. Mocking out Environment.Exit. Question I came across recently on Twitter. How do I write a test when there's an Environment.Exit? Very good question. My answer was basically rewrite the code! A really quick way to do this is create a static action that will allow you to mock it out. What if I created a class called MyEnvironment with this Action:. Exit = exitCode = Environment.Exit(exitCode);. In code I can just replace the call with this:.
karmagarda.blogspot.com
Karma Garda's Snippet Diary: Posting html code in Blogger
http://karmagarda.blogspot.com/2009/08/posting-html-code-in-blogger.html
Karma Garda's Snippet Diary. Thursday, 20 August 2009. Posting html code in Blogger. Read my newer post here. Before using this method.). Funny, on my very first post in Blogger I struggled getting the code to display. Want a real easy, non fancy way of getting it to display? Convert your html to html safe code. Here's a really nice site for this:. Http:/ www.htmlconvert.net/. If you want all tags converted then ensure to select the "Convert Tags" or "Convert and Colourize Tags" option.
SOCIAL ENGAGEMENT