— New online course!  Getting Started with Azure DevOps — Special launch price 50% off —

VSLive SF 2015: ‘Better Unit Tests Through Design Patterns’ Slides & Code

by

As promised, here are the slides from the Better Unit Tests through Design Patterns: Repository, Adapter, Mocks, and more… talk that I did this week at VSLive Orlando 2015.

Here’s the abstract:

You’re sold on unit testing. You’re even doing “test first” development – but there are always those nagging questions. How do your user interfaces fit into your testing plan? Do I have to call my database in order to have a good, solid test? What about calls into separate sub-systems or calls out to web services? Do you really need to have all those pieces running in order to test your logic? What do I do about that app that doesn’t have any tests?

In this session, Ben will start by clarifying the difference between “unit” and “integration” tests. After that, he’ll demonstrate how using dependency injection, mocks objects and stubs can help break dependencies and simplify your tests. Throughout the talk, you can expect to hear a lot about design patterns, how much code coverage is enough, and the fine line between too much and too little object mocking.  And it won’t just be ASP.NET MVC — there’ll be WebAPI and AngularJS demos, too!

Here’s a link to download the code.  Here’s a link to download the slides.

Enjoy!

-Ben


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: