Testability patterns: Inversion of Control, Separated Presentation
可测试模式:控制反转、分离表现
Inversion of Control (IoC) and Dependency Injection (DI) are patterns that draw a lot of attention (see Resources).
控制反转(IoC)和依赖项注入(DI)是两种引起极大关注的模式(参见参考资料)。
Ds components needs no OSGi interfaces, and as such, can be mocked for testing or used in other inversion of control patterns like Spring.
DS组件不需要OSGi接口,这样,它可以在其他控制反转模式(如spring)里被模拟来测试或使用。
The more of these inversion-of-control anti-patterns the software has, the more difficult it will be to reshape it to work with Ninject -- or any dependency injection technique, for that matter.
软件具有的控制反转反模式越多,那么使用Ninject对代码进行优化就越困难——应该说任何一种依赖注入技术对于这种情况都难以应对。
We should make inversion according to the similarities and differences of expression patterns between the English and Chinese languages, and in the light of expression patterns of English usage.
按英汉两种语言表达模式的异同进行词序调整;按英语的习惯表达方式进行词序调整。
We should make inversion according to the similarities and differences of expression patterns between the English and Chinese languages, and in the light of expression patterns of English usage.
按英汉两种语言表达模式的异同进行词序调整;按英语的习惯表达方式进行词序调整。
应用推荐