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.
因此,根据从服务配置器得来的信息,工厂封装了访问服务必须使用的实现知识。
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.
一般情况下在使用高级抽象,比如函数编程时,您不需要了解实现细节,但这并不意味这在必要的情况下,就无法了解。
应用推荐