コード例 #1
0
 public void VerifyDeleteCohortWasCalledCorrectly()
 {
     CommitmentsApiClient.Verify(x => x.DeleteCohort(ConfirmDeleteViewModel.CohortId, UserInfo, It.IsAny <CancellationToken>()));
 }
 public void VerifyGetDraftApprenticeshipsIsCalledCorrectly()
 {
     CommitmentsApiClient.Verify(x => x.GetDraftApprenticeships(DeleteApprenticeshipRequest.CohortId, CancellationToken.None), Times.Once);
 }
コード例 #3
0
 public void VerifyAgreementIdIsFetchedAndEncodedCorrectly(string agreementHashedId)
 {
     CommitmentsApiClient.Verify(x => x.GetCohort(Source.CohortId, It.IsAny <CancellationToken>()));
     CommitmentsApiClient.Verify(x => x.GetLatestAgreementId(Cohort.AccountLegalEntityId, It.IsAny <CancellationToken>()));
     Assert.AreEqual("XYZ", agreementHashedId);
 }