2min chapter

The Unhandled Exception Podcast cover image

Dependency Injection in .NET with Steve Collins

The Unhandled Exception Podcast

CHAPTER

Interface Segregation Principles and Substitution Principles

You can either use abstract base classes, if that's appropriate, but most people tend to lean towards using interpaces. I guess that must tie into a lot an di no, this is kind of a controversial subject with people that are quite inter testing. But the whole mocking libraries, like m o c and n substitute, i might say, personally a big fan of mocking libraries. And certainly things where it's a function, or you just want a particular property tested, that's great. Where i tend more towards writing a concrete that just is a little bit more than a mock is.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode