本文整理汇总了TypeScript中typemoq.It.isValue方法的典型用法代码示例。如果您正苦于以下问题:TypeScript It.isValue方法的具体用法?TypeScript It.isValue怎么用?TypeScript It.isValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类typemoq.It
的用法示例。
在下文中一共展示了It.isValue方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
baseModelRetriever.verify(b => b.modelFor(It.isValue({
area: "Admin",
modelId: "Bar",
parameters: {
id: "20"
}
}), null), Times.once());
示例2:
response.verify(s => s.send(It.isValue({
name: "Mock",
size: 8,
humanizedSize: "8 bytes",
events: 2,
failed: false,
realtime: true,
running: true,
lastEvents: [
{
type: "test",
payload: "payload-test"
},
{
type: "test2",
payload: "payload-test2"
}
]
})), Times.once());
示例3:
eventEmitter.verify(e => e.emitTo("25f", "/admin/foo/id-1", It.isValue({
url: "http://test:80/projections/admin/foo",
notificationKey: "id-1",
timestamp: null,
eventId: null
})), Times.once());
示例4:
instantiationService.setup(x => x.createInstance(TypeMoq.It.isValue(AccountListRenderer)))
示例5:
.setup(x => x.isURL(It.isValue(url)))
示例6: Date
streamFactory.verify(s => s.from(It.isValue({
name: "Mock",
manifests: ["TestEvent"],
from: new Date(5)
}), It.isAny(), It.isAny()), Times.once());
示例7:
idempotenceFilter.verify(i => i.setItems(It.isValue([])), Times.once());
示例8:
instantiationService.setup(x => x.createInstance(TypeMoq.It.isValue(AccountPickerViewModel), TypeMoq.It.isAny()))
示例9:
response.verify(r => r.send(It.isValue([
"Test", "Test2"
])), Times.once());