public async Task HasUserAgreedToLatestTerms_ShouldReturn_False() { _svc = CreateService(); var agreed = await _svc.HasUserAgreedToLatestTermsAndPrivacy(USER_ID); agreed.Should().BeFalse(); }
public async Task HasUserAgreedToLatestTerms_ShouldReturn_True() { var agreements = new List <UserAgreementDocumentEntity>() { new UserAgreementDocumentEntity() { UserId = USER_ID, AgreementDocumentId = AGREEMENTDOCUMENTS.FirstOrDefault(x => x.AgreementType == AgreementDocumentTypes.TermsAndPrivacy).AgreementDocumentId } }; _db = new MockDbBuilder() .WithAgreementDocuments(AGREEMENTDOCUMENTS) .WithUserAgreements(agreements) .Build(); _svc = CreateService(); var agreed = await _svc.HasUserAgreedToLatestTermsAndPrivacy(USER_ID); agreed.Should().BeTrue(); }