Call Me: (770) 800-1832

Enterprise Cloud Architect & Serial Entrepreneur

Specializing in Windows Azure, Microsoft ASP.NET, Data, SharePoint, & Team Foundation Server


@TeamCavuto if banks fail, let'em but reimburse depositors - its not their fault & funds are insured. Then sell remaining bank assets

Upcoming Events

None at this time.
Click the link to view previous events.

Blog Posts

The other day I was writing some unit tests for testing my MVC application’s forms authentication classes.  I needed to Mock the System.Web.HttpContext object.  There are a couple of ways to do this depending on the version of Visual Studio you are using (i.e. Professional, Premium/Ultimate/Enterprise) and how deep you wish to provide some default […]

The other day I was writing some unit tests on an MVC project.  I needed to mock (fake) an HttpRequest object using the System.Web assembly.  However, there was a strange issue in creating the fakes assembly and adding it to my Visual Studio solution.  Namely, it didn’t show up.

Do your MVC model properties contain attributes?  Have you ever wanted to unit test the properties to verify that the ModelState fails or succeeds based on given values?  Below is a static method that can be used for your unit tests as you test your models.

Recent Comments

Joshua - 4 months ago
Slin, Thanks for your compliments. I send out a monthly digest of my articles....
Naresh Dhami - 4 months ago
Great write-up. It open up a new front for building good software with minimum r...
Rahn L - 4 months ago
I got excited, then realized I'd need to install Code, not the version of VS tha...
Joshua - 4 months ago
Rahn, From what I can tell from Visual Studio's website on ...
MattjCamp - 1 month ago
This is amazing - visual studio is a much better experience than that is out th...