With the variable injected, you then can easily mock and test it. Testing by extracting to a private method. If somehow the dependency injection ...
確定! 回上一頁