本文整理匯總了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());