-
XML utility methods for C#
It’s tough to work on a project that doesn’t involve XML. XML is everywhere and I kept needing to do the same things again and again from project to project. I took my C# XML utility methods, converted them to extension methods, and then put them into a class that I could drop in to…
-
VSLive Chicago 2013: “Design for Testability” slides & code
I just wrapped up at VSLive Chicago 2013 and, as promised, here are my slides and code samples from the “Design for Testability: Mocks, Stubs, Refactoring, and User Interfaces” talk. Design for Testability: Mocks, Stubs, Refactoring, and User Interfaces You’re sold on unit testing. You’re even doing “test first” development – but there are always…
-
VSLive Las Vegas 2013: “Design for Testability” slides & code
I just wrapped up at VSLive Las Vegas 2013 and, as promised, here are my slides and code samples from the “Design for Testability: Mocks, Stubs, Refactoring, and User Interfaces” talk. Design for Testability: Mocks, Stubs, Refactoring, and User Interfaces You’re sold on unit testing. You’re even doing “test first” development – but there are…
-
Unit Testing & Test-Driven Development Courseware for Visual Studio 2010
Well, like I mentioned in my last post, I’m planning to publish a lot of the old courseware that I’ve developed over time. The idea is to share the materials that I’m no longer using with the good folks on the internet rather than to have it all sitting around collecting virtual dust on my…
-
Lab: Refactor for testability using the Repository pattern
I had a long drive yesterday to go visit a customer and while I was driving it occurred to me that I have LOTS of courseware that I’ve written that is just sitting around gathering virtual dust. Whether they’re parts of classes that never fully came together or they’re for courses that target old versions…
-
Tip: Make TFS2012 build logging easier using extension methods in Microsoft.TeamFoundation.Build.Workflow.Activities
I’ve been writing a lot of custom Workflow Activities for Team Foundation Server 2012 (TFS2012) Builds lately. A custom Workflow Activity lets you drop application-specific logic and steps into theout-of-the-box TFS build scripts (aka. “build process templates”). When you write one of these Activities, you almost always need/want to write to the TFS build log…
-
Use a Coded UI to test ListBox and ComboBox controls in a web application
A little over a year ago, I wrote a blog post about using Coded UI Tests to programmatically manipulate ListBoxes and ComboBoxes in a Windows Form application. More recently I got an email from a reader asking for that same kind of sample application for ListBoxes and ComboBoxes (aka “drop down lists”) using Visual Studio…
-
Slides & Samples from my Visual Studio Live Vegas 2012 talks.
I spoke at Visual Studio Live 2012 last week and, as promised, here are the slides and code samples from my talks. Talk #1: Top 7 Lessons Learned On My First Big Silverlight Project Silverlight is tricky. You’d think it’d be just like writing any other .NET app but there are some things that can…
-
“How to be a C# ninja in 10 easy steps”: Slides & Code
I spoke at Microsoft DevBoston a few days ago and did my “How to be a C# ninja in 10 easy steps” talk. As promised, here are my slides and my code samples. Abstract: Are you new to C# and want to get awesome? Are you pretty good at C# and you want to raise…
-
Article: “Static methods are a code smell”
I wrote an article a while back for TechTarget / SearchWinDevelopment about static methods being a code smell. It got published a few weeks ago and here’s a link to read it. Static methods are a code smell by Ben Day 02.26.2010 Ever heard of code smells? A code “smell” is a way of saying…