阅读背景:

如何模拟服务对象?我应该嘲笑它吗?

来源:互联网 

I have a service object called ResetPassword that handles all the logic for the ResetPassword Controller create action. I also have already tested the service object. Should I mock the service object? I figure I should since it's ready tested and it would cut down on running specs. My test code so far for the controller is below. Not sure if it should be written this way.I have a service object called ResetPassword th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: