Today’s topic is about custom exception types. That is whether or not you should write your own exception types to throw in different situations.| Enterprise Craftsmanship
Should you always mock out your database? Or should you include it in the unit/integration testing scope? What about other external systems? This post is based on my Pluralsight course about Pragmatic Unit Testing. Two types of external dependencies When it comes to external dependencies (dependencies outside the process that hosts your application, such as a database, a 3rd party system, etc.), there’s no single guideline regarding how to work with them in tests.| Enterprise Craftsmanship