The mock service is then provided with a set of responses.
Mock服务拥有一组响应。
It also makes it easier to unit test the component with a mock service.
在这种方式下,借助模拟服务来对组件进行单元测试也会更容易。
These responses are used to respond to request made to the mock service.
这些响应用于响应对Mock服务的请求。
We recommend a mock service be generated for each Web service in the project.
我们推荐为项目中每个Web服务都生成一个Mock服务。
How should the service mock work?
服务模拟应该如何运作?
This example service mock needs to pass the example service tests I wrote earlier.
此示例服务模拟需要通过我前面编写的示例服务测试。
Listing 1: Service mock that is a special implementation of a common interface.
清单1:作为通用接口的特殊实现的服务模拟。
The mock implementation should be just enough to pass the service tests.
模拟实现应该足以通过服务测试即可。
We created mock hero data and imported them into our service.
我们创建了模拟的英雄数据,并把它导入我们的服务中。
I recently made a mock appointment with the service so that I was able to see just what it was like to video chat with a medical professional.
最近,我用这项服务进行了一次模拟预约,想亲自体验一下与医学专家视频通话的感受。
I recently made a mock appointment with the service so that I was able to see just what it was like to video chat with a medical professional.
最近,我用这项服务进行了一次模拟预约,想亲自体验一下与医学专家视频通话的感受。
应用推荐