Testing WITHOUT Mocks or Interfaces!
A common approach people take with testing is mocking. Specifically defining interfaces for dependencies which are then typically mocked so you can test in isolation. While interfaces can be helpful for mocking as well as fakes and stubs, there can be other approaches taken. Meaning you don’t need to create an interface for everything. YouTube Check out my YouTube channel, where I post all kinds of content accompanying my posts, including this video showing everything in this post. Deterministic Let’s start with a method in an OrderService for creating an Order. To test this method, there are a few dependencies involved. The… Read More »Testing WITHOUT Mocks or Interfaces!