App Dev Data

VSH10 Non-Useless Unit Testing Entity Framework & ASP.NET MVC


1:00pm - 2:15pm

Level: Advanced

Benjamin Day

Author, Trainer, Developer

We all know that we should be writing unit tests for our applications. But what do you do about that database code? Data access code is famous for wrecking our dreams for a clean, unit-testable application. Add ASP.NET MVC and application security into the mix and those unit-testing dreams just drift further and further away.

It doesn't have to be that way. Heck! It's not even that hard to do! It just takes a little bit of planning and some basic design patterns. In this session, we'll go through how to design and build your ASP.NET MVC and Entity Framework applications so that you've got a clean, maintainable, and unit-testable design.

You will learn:

  • How to design a testable ASP.NET app using EF
  • How to unit test security-related code in ASP.NET MVC controllers
  • Gotchas for testing EF code