You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1009,24 +1007,24 @@ You could do two things ((("adapters", "exercise for the reader")))for practice
1009
1007
1010
1008
=== Wrap-Up
1011
1009
1012
-
Once you have more than one adapter, you'll start to feel a lot of pain
1010
+
* Once you have more than one adapter, you'll start to feel a lot of pain
1013
1011
from passing dependencies around((("bootstrapping", "dependency injection and bootstrap recap")))((("dependency injection", "recap of DI and bootstrap"))) manually, unless you do some kind of
1014
1012
_dependency injection._
1015
1013
1016
-
Setting up dependency injection is just one of many typical
1014
+
* Setting up dependency injection is just one of many typical
1017
1015
setup/initialization activities that you need to do just once when starting
1018
1016
your app. Putting this all together into a _bootstrap script_ is often a
1019
1017
good idea.
1020
1018
1021
-
The bootstrap script is also good as a place to provide sensible default
1019
+
* The bootstrap script is also good as a place to provide sensible default
1022
1020
configuration for your adapters, and as a single place to override those
1023
1021
adapters with fakes for your tests.
1024
1022
1025
-
A dependency injection framework can be useful if you find yourself
1023
+
* A dependency injection framework can be useful if you find yourself
1026
1024
needing to do DI at multiple levels—if you have chained dependencies
1027
1025
of components that all need DI, for example.
1028
1026
1029
-
This chapter also presented a worked example of changing an implicit/simple
1027
+
* This chapter also presented a worked example of changing an implicit/simple
1030
1028
dependency into a "proper" adapter, factoring out an ABC, defining its real
1031
1029
and fake implementations, and thinking through integration testing.
1032
1030
@@ -1041,9 +1039,10 @@ In summary:
1041
1039
4. Find a less fake version you can put into your Docker environment.
1042
1040
5. Test the less fake "real" thing.
1043
1041
6. Profit!((("adapters", "defining adapter and doing dependency injection for it", startref="ix_adapDI")))
1042
+
1043
+
// TODO this isn't really in the right TDD order is it?
1044
1044
****
1045
1045
1046
1046
These were the last patterns we wanted to cover, which brings us to the end of <<part2>>. In <<epilogue_1_how_to_get_there_from_here, the epilogue>>, we'll try to give you some pointers for applying these techniques in the Real World^TM^.
1047
-
// TODO this isn't really in the right TDD order is it?
0 commit comments