DEV Community

Discussion on: Do not write cheap code, make code cheap

Collapse
 
philou profile image
Philippe Bourgau

It's not by error that you mention both Value Objects and avoiding Mocks in the same post. The first is a way to achieve the second :)

I've written a series of post about how to avoid mocking. It turns out it's possible to write tests without mocks that are almost as fast. A trick is to use in-memory fakes to inject dependencies to other subdomains or layers.

Thanks for your post!