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); }
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); }