本文整理匯總了TypeScript中integration-test/tests/citizen/defence/steps/defence.DefenceSteps類的典型用法代碼示例。如果您正苦於以下問題:TypeScript DefenceSteps類的具體用法?TypeScript DefenceSteps怎麽用?TypeScript DefenceSteps使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了DefenceSteps類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: Scenario
Scenario('I can complete the journey when I partially admit the claim with payment already made @citizen @admissions', async (I: I) => {
const claimData = await prepareClaim(I)
defenceSteps.makePartialAdmission(claimData.data.defendants[0])
defenceSteps.partialPaymentMade(PartyType.INDIVIDUAL)
})
示例2: Scenario
Scenario('I can complete the journey when I fully admit all of the claim with full payment by instalments @citizen @admissions', async (I: I) => {
const claimData = await prepareClaim(I)
defenceSteps.makeFullAdmission(claimData.data.defendants[0], PartyType.INDIVIDUAL, PaymentOption.INSTALMENTS, claimData.data.claimants[0].name, false)
})