本文整理汇总了TypeScript中claimant-response/tasks/chooseHowToProceedTask.ChooseHowToProceedTask.isCompleted方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ChooseHowToProceedTask.isCompleted方法的具体用法?TypeScript ChooseHowToProceedTask.isCompleted怎么用?TypeScript ChooseHowToProceedTask.isCompleted使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类claimant-response/tasks/chooseHowToProceedTask.ChooseHowToProceedTask
的用法示例。
在下文中一共展示了ChooseHowToProceedTask.isCompleted方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: buildFormaliseRepaymentPlan
private static buildFormaliseRepaymentPlan (draft: DraftClaimantResponse, tasks: TaskListItem[], externalId: string) {
if (
draft.acceptPaymentMethod && (
draft.acceptPaymentMethod.accept.option === YesNoOption.YES || (
this.isFormaliseRepaymentPlanNotSetOrNotReferToJudge(draft) &&
draft.acceptPaymentMethod.accept.option === YesNoOption.NO &&
isDefinedAndValid(draft.alternatePaymentMethod) &&
draft.courtDetermination.rejectionReason.text === undefined
)
)
) {
tasks.push(
new TaskListItem(
'Choose how to formalise repayment',
Paths.chooseHowToProceedPage.evaluateUri({ externalId: externalId }),
ChooseHowToProceedTask.isCompleted(draft.formaliseRepaymentPlan)
)
)
}
}
示例2: it
it('should not be completed when object is undefined', () => {
expect(ChooseHowToProceedTask.isCompleted(undefined)).to.be.false
})
示例3: expect
FormaliseRepaymentPlanOption.all().forEach(option => {
expect(ChooseHowToProceedTask.isCompleted(new FormaliseRepaymentPlan(option))).to.be.true
})