From ec0998cbe0cbb3f5efbd073b88b9e0e0392c8792 Mon Sep 17 00:00:00 2001 From: thinwybk Date: Mon, 10 Apr 2017 23:14:49 +0200 Subject: [PATCH] add: section "design for testability patterns" constructor injection --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 2c12ab479..696d45cd1 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,12 @@ __Behavioral Patterns__: | [template](behavioral/template.py) | an object imposes a structure but takes pluggable components | | [visitor](behavioral/visitor.py) | invoke a callback for all items of a collection | +__Design for Testability Patterns__: + +| Pattern | Description | +|:-------:| ----------- | +| [constructor_injection](dft/constructor_injection.py) | the client provides the depended-on object to the SUT via the class construtor (implmentation variant of dependency injection) | + __Fundamental Patterns__: | Pattern | Description |