diff --git a/doc/Diagrams.pptx b/doc/Diagrams.pptx index f3ddedff3..1d9a5867d 100644 Binary files a/doc/Diagrams.pptx and b/doc/Diagrams.pptx differ diff --git a/doc/LearningOutcomes.md b/doc/LearningOutcomes.md index f3f8a27bb..6a54bcf04 100644 --- a/doc/LearningOutcomes.md +++ b/doc/LearningOutcomes.md @@ -126,6 +126,10 @@ getting the `StorageFile` class involved? That is a situation where we can use * * Update the `LogicTest` to work with the `StorageStub` instead of the actual `StorageFile` object.
i.e. `Logic` injects a `StorageStub` object to replace the dependency of `Logic` on `Storage` before testing `Logic`. +* The example above uses [DIP](#apply-dependency-inversion-principle-lo-dip) as a means to achieve DI. + Note that there is another way to inject a `StorageStub` object, as shown below. + In this case we do not apply the DIP but we still achieve DI.
+ ------------------------------------------------------------------------------------------------------ diff --git a/doc/images/DependencyInjectionWithoutDIP.png b/doc/images/DependencyInjectionWithoutDIP.png new file mode 100644 index 000000000..0ff2790e6 Binary files /dev/null and b/doc/images/DependencyInjectionWithoutDIP.png differ diff --git a/doc/images/LogicStroageFileDIP.png b/doc/images/LogicStroageFileDIP.png index 971895ffd..682260c8c 100644 Binary files a/doc/images/LogicStroageFileDIP.png and b/doc/images/LogicStroageFileDIP.png differ