VSLive 2015 in Austin, TX!
I'm writing this post from the Austin airport as I'm getting ready to head home after a very educational 4 days in Austin for VSLive 2015. I wanted to quickly write down a lot of key points from all of the sessions I attended. I figure [...]
Null or empty model values after posting to controller and editing model
I have been working with MVC for a little while now and always learning new things about it, yesterday I ran into something for the very first time, so wanted to share. I've seen the pattern of using a single view for both creation/editing of a [...]
Custom 401 error pages in MVC alongside Windows Authentication
We use windows authentication for a lot of our web apps, but also want to serve up a custom 401 error page when users are not authorized to log in. This is tricky because this specific 401 error is handled directly by IIS, rather than the [...]
Libraries for Unit Testing MVC5 Controllers
There are various libraries available to help you unit test your controller actions, returned views and models, and action results with MVC. One that I have recently started using is TestStack.FluentMVCTesting. This library allows you to perform actions on your controllers within your unit tests, and [...]
WordPress Infinite 302 Redirect loop on login after Reverting or Overwriting Folders
A few weeks ago, I updated a WordPress installation to 4.0, only to find out that the theme it was using, was not yet fully compatible with 4.0. So in order to revert to a prior version of WordPress, I had to download the version I [...]
Mocking a generic ObjectSet or IObjectSet for Unit Testing Entity Framework Business Logic
Up until this point, I had mostly been using nHibernate for my ORM solution in most applications I work on. So when I started diving into Entity Framework (EF) models and trying to write unit tests against logic that lives in EF entities, I first encountered [...]