I spoke at VSLive Orlando 2018 last week and as promised here are the slides and code samples from my Non-Useless Unit Testing for Entity Framework Core & ASP.NET MVC Core talk.
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 Core 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 Core & Entity Framework Core applications so that you’ve got a clean, maintainable, and unit testable design.