| Term | Scope | Mocks |
|---|---|---|
| Unit Test (Solitary) | One method / one class | All direct dependencies. |
| Unit Test (Sociable) | One feature / multiple classes | Only external systems (DB/API). |
| Integration Test | System + external | No mocks (or very few). |
Example: we want to unit test the PaymentService class which depends on IPaymentExecutor and IPaymentRecorder
IPaymentExecutorcalls externalPaypalApi