public async Task GetLatestAgreementId_WithValidIdAndExistingLegalEntity_ShouldCallServicesCorrectly() { var f = new EmployerAgreementControllerTestFixtures(); await f.Sut.GetLatestAgreementId(f.AccountLegalEntityId, CancellationToken.None); f.VerifyMediatorCalledCorrectlyWithId(f.AccountLegalEntityId); f.VerifyGetLatestAgreementCalledCorrectly(); }
public async Task IsAgreementSignedForFeature_WithValidModelAndExistingLegalEntity_ShouldCallServicesCorrectly() { var f = new EmployerAgreementControllerTestFixtures(); await f.Sut.IsAgreementSignedForFeature(f.AgreementSignedRequest.AccountLegalEntityId, f.AgreementSignedRequest.AgreementFeatures, CancellationToken.None); f.VerifyMediatorCalledCorrectlyWithId(f.AgreementSignedRequest.AccountLegalEntityId); f.VerifyIsAgreementSignedCalledCorrectly(); }