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...
View ArticleUse 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...
View ArticleTip: Make TFS2012 build logging easier using extension methods in...
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...
View ArticleLab: 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....
View ArticleUnit 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...
View ArticleVSLive 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...
View ArticleVSLive 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...
View ArticleXML 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,...
View ArticleSlides from “How to be a C# Ninja” at Visual Studio Live Orlando 2013
I spoke at VSLive Orlando 2013 last month and did a talk called “How to Be a C# Ninja in 10 Easy Steps”. How to Be a C# Ninja in 10 Easy Steps Are you new to C# and want to get awesome? Are you pretty...
View ArticleAutomatic Exception Handling on ICommand ViewModel Properties
If you’re writing a WPF application or some other XAML-based application, you’re probably using the Model-View-ViewModel (MVVM) pattern. If you’re being “good” about your MVVM implementation, you’re...
View ArticleVSLive Vegas 2016: Unit Testing for Mere Mortals Slides & Code
I just wrapped up my first talk at VSLive Las Vegas 2016 — “Unit Testing & Test-Driven Development (TDD) for Mere Mortals”. Thanks to all the attendees for the great questions — especially the...
View ArticleVSLive Redmond 2017: Unit Testing for Mere Mortals Slides & Code
I just wrapped up my talk at VSLive Redmond 2017 — “Unit Testing & Test-Driven Development (TDD) for Mere Mortals”. Thanks to all the attendees for the great questions. As promised, here are my...
View ArticleVSLive Orlando 2017: Unit Testing for Mere Mortals Slides & Code
I just wrapped up my talk at VSLive Orlando 2017 — “Unit Testing & Test-Driven Development (TDD) for Mere Mortals”. Thanks to all the attendees for the great questions. As promised, here are my...
View ArticleSlides & Code from VSLive Austin 2018: “Unit Testing for Mere Mortals”
I just wrapped up my talk at VSLive Austin 2018 — “Unit Testing & Test-Driven Development (TDD) for Mere Mortals”. Thanks to all the attendees for the great questions. As promised, here are my...
View ArticleSome Useful Visual Studio Code Snippets
A couple of months ago, I got inspired to really learn .NET Core and Visual Studio Code (VSCode). But I didn’t just want to learn it from Windows — the real power of .NET Core is that’s...
View ArticleSome Model Properties Not Binding in ASP.NET MVC Core
[TL/DR? – skip to the bottom] I ran into a problem with an ASP.NET MVC Core app today and it took me a while to figure it out. Here’s the problem: on an extremely simple and straightforward form, I...
View ArticleProfile a Unit Test in Visual Studio Fails with “File contains no data buffers”
Visual Studio has a fantastic feature in it that lets you quickly run the performance profiler against a unit test. Got a test that is running slow and you want to find out why? Go to Test Explorer,...
View Article3 Common Problems with ClaimsIdentity and ClaimsPrincipal in ASP.NET Core
In .NET Core, the ClaimsIdentity class represents a user in your application. It helps describe who they are and helps manage the list of claims which describe what they can do. But if you use the...
View ArticleC#: How to Find All Files Including Hidden Files?
I was writing some code yesterday that needed to enumerate all files in a directory. So I wrote what I’ve been writing since the beginning of time: var files = Directory.GetFiles("*.*", new...
View ArticleAngular WebAPI Project using .NET Core gets ‘404 Not Found’ or runs on wrong...
I’ve got an Angular application that runs using .NET Core in a WebAPI project. It’s been working for months but for some reason today, it completely stopped working when I launched it from VSCode,...
View Article
More Pages to Explore .....