Remove .Net Remove Infrastructure Remove System Design Remove TDD
article thumbnail

Testing Without Mocks: A Pattern Language

James Shore

Bad tests are a sign of bad design, so some people use techniques such as Hexagonal Architecture and functional core, imperative shell to separate logic from infrastructure. Infrastructure is code that involves external systems or state.) It depends on Rot13 , a Logic class, and CommandLine , an Infrastructure class.

Testing 138
article thumbnail

Testing Without Mocks: A Pattern Language

James Shore

When programmers use test-driven development (TDD), the code they test interacts with other parts of the system that aren't being tested. Infrastructure Patterns. Infrastructure Wrappers. Nullable Infrastructure. Some third-party infrastructure code has to be mimicked with hand-written stub code. Spy Server.

Testing 88
article thumbnail

Testing Without Mocks: A Pattern Language

James Shore

When programmers use test-driven development (TDD), the code they test interacts with other parts of the system that aren't being tested. Infrastructure Patterns. Infrastructure Wrappers. Nullable Infrastructure. Some third-party infrastructure code has to be mimicked with hand-written stub code. Spy Server.

Testing 40