Black-box testing treats the software as a "black box," without any knowledge of internal implementation and the test engineer will perform tests on the software as a customer would use the product.
Therefore, the factory encapsulates the knowledge of which implementation it has to use to access the service, depending on the information from the service Configurator.
因此,根据从服务配置器得来的信息,工厂封装了访问服务必须使用的实现知识。
3
Just because you usually surrender knowledge of implementation details when using higher-level abstractions like functional programming doesn't mean that you can't get down and dirty if you must.