Not really a hero is able to become a real speaker.
不是真正的豪杰就无法成为真正的演说家。
More to the point, you could easily inject a mock object instead of a real Speaker implementation, and you could do a test without affecting the rest of your code base.
更关键的是,您可以轻松地注入模拟对象来替代真正的Speaker实现,并且无需影响其他的代码基就可以进行测试。
You cannot see spirit, but you know that the spirit of the game, the spirit of the artist, the spirit of the musician, and the spirit of the speaker is real.
你的精神是不可见的,但你可以判断出某个游戏的热情,某个艺术家的激情,某个音乐家的激情,某个发言者的激情是否是真的。
应用推荐