Geeks With Blogs
Doug Butscher Nothin' but .NET! October 2009 Entries
Geek Humor | C#/RhinoMocks
I was IM’ing with a co-worker recently, and both of us were working on writing Unit Tests for code we had just completed. He was saying that his car was having trouble, was in the shop, and that they really didn’t know what was wrong with it. I was going to tell him to not take any excuses from the mechanic, when the RhinoMocks IgnoreArguments()option popped into my head. I said something like “'tell him ‘FixMyCar.IgnoreArguments()’”, and it was a downward spiral of geek humor from there. Below is ......

Posted On Thursday, October 22, 2009 5:09 PM

ReSharper | Surround With
Just stumbled across some pretty cool functionality with Jet Brains ReSharper 4.0 (you may already be familiar with it, but who cares, it’s still cool!) Basically, ReSharper has a Surround With tool that allows you to surround a selection of code with… more code. It comes with a bunch of predefined templates, like if..else, using, while, try..catch blocks, but you can edit existing templates and also create and organize your own custom templates. To get to the Templates Explorer, select ReSharper ......

Posted On Thursday, October 15, 2009 6:00 PM

WCF Service Reference | 'extendedProtectionPolicy'
I was trying to regenerate a Silverlight proxy, but I kept getting this error: Turns out, Win 7 sometimes adds an <extendedProtectionPolicy policyEnforcement="Never" /> element to your Web.config. Here’s the workaround according to the Silverlight Web Services team: On Windows 7, when you use the Silverlight-enabled WCF Service item template, an <extendedProtectionPolicy /> element may be generated in Web.config. This element is not supported by Silverlight. Simply remove the element ......

Posted On Friday, October 9, 2009 8:08 AM

Copyright © Doug Butscher | Powered by: GeeksWithBlogs.net