try-catch-FAIL

Failure is inevitable

NAVIGATION - SEARCH

I Just Launched My First Product: Perfect PDF for ASP.NET MVC

I’m currently in the midst of the longest vacation I’ve taken in over 3 years.  Aside from cranking out content for my next Pluralsight course, working on improving the startup experience for SpecsFor and SpecsFor.Mvc, AND working on an entirely new member of the SpecsFor family, I also decided I wanted to ship a product!  Say hello to Perfect PDF for ASP.NET MVC! More...

SpecsFor Basics - Writing Your First Spec, Part 1

The documentation on SpecsFor is sorely lacking.  Me (and another volunteer!) are working to fix that.  This is part of a series of posts about SpecsFor, which will eventually make its way in to the official docs. In our last post, we looked at organizing specs in a typical web project.  We created two projects to house our specs, and we added SpecsFor to each of them using NuGet.  In this post, we'll shift gears and focus on the mechanics of testing as we create our first spec! More...

SpecsFor 4.0 Released

In what will assuredly be the most lack-luster major release of all time, SpecsFor has been bumped to version 4.0.  There are no new features in this update.  So why is this 4.0?  This new version uses StructureMap 3.0, which was not compatible with previous versions of SpecsFor.  Because of changes in StructureMap’s automocker, this release also (finally) breaks the useless dependency on Rhino Mocks.  So, enjoy!  The latest version is on on NuGet.

SpecsFor Basics - Creating Your First Test Project with SpecsFor

The documentation on SpecsFor is sorely lacking.  Me (and another volunteer!) are working to fix that.  This is the first in a series of posts about SpecsFor, which will eventually make its way in to the official docs.  In this post, I'll show you how to add SpecsFor to your project using NuGet, and I'll show you how I typically organize my specs. More...

Using HttpContext Safely After Async in ASP.NET MVC Applications

Another day, another Entity Framework (and ASP.NET MVC 5) async problem, and another solution for you!  Actually, today I have two solutions for you!  This time, I ran into a problem with HttpContext's Items collection losing my IoC container when execution resumed after an await.  The fix is simple once you understand what's going on. More...

Painless Workstation Setup with Boxstarter

I recently used Boxstarter to set my development machine back up after a format.  Boxstarter is a game-changer for Windows.  I create a simple Powershell script, ran a simple command, then walked away as my machine spent the next several hours downloading, installing, and rebooting, all without me lifting another finger.  When the dust settled, I had a Windows 8.1 machine with my tools and utilities installed, updated, and ready to rock. More...

A Better Way to Configure AutoMapper for ASP.NET MVC (Video)

AutoMapper is one of the essential tools in my ASP.NET MVC toolbelt.  I use it on every MVC project I do.  It's saved me countless lines of code over the years.  And yet, there's always been one thing that bugged me about it: it violates the idea of "common closure."  I've built a better way to handle this, but as my friends have accused reminded me, I might have forgotten to share this approach publicly.  Until now. More...

SpecsFor and SpecsFor.Mvc Roadmap

Today, I took the first steps in laying out a roadmap for future work on both SpecsFor and SpecsFor.Mvc.  More...

Making TransactionScope Work with async/await in .NET 4.5

I ran into a frustrating little problem today.  I'm getting started with Entity Framework 6 and its async features on a new project, and my SpecsFor integration tests were bombing out unexpectedly.  In turns out the problem was caused by TransactionScope and async work together out of the box.  Or rather, how they don't work together. More...

Source Code for “Build Your Own Application Framework” Course Online

If you do a quick Google for Fail Tracker, the sample project I used in my Pluralsight course, you will end up at a Github project page for Fail Tracker that I set up back in 2011.  That’s when I first used “Fail Tracker” in a demo (at CodeStock!), and until today, it has hosted only the very old, obsolete version of this application.  I corrected that problem a few moments ago, so the project page now contains the same version of the application that I used in my Pluralsight course.  Enjoy!