Skip to content

Commit ec0998c

Browse files
author
thinwybk
authored
add: section "design for testability patterns"
constructor injection
1 parent d3ea46e commit ec0998c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ __Behavioral Patterns__:
5656
| [template](behavioral/template.py) | an object imposes a structure but takes pluggable components |
5757
| [visitor](behavioral/visitor.py) | invoke a callback for all items of a collection |
5858

59+
__Design for Testability Patterns__:
60+
61+
| Pattern | Description |
62+
|:-------:| ----------- |
63+
| [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) |
64+
5965
__Fundamental Patterns__:
6066

6167
| Pattern | Description |

0 commit comments

Comments
 (0)