public async Task Handle(string hashedAccountId, long agreementId, Guid externalUserId) { EmployerAgreementBuilder.EvaluateSignedAndPendingAgreementIdsForAllAccountLegalEntities(); EmployerAgreementBuilder.SetupMockDbContext(); var request = BuildRequest(hashedAccountId, agreementId, externalUserId); var handler = new GetEmployerAgreementQueryHandler( new Lazy <EmployerAccountsDbContext>(() => EmployerAgreementBuilder.EmployerAccountDbContext), EmployerAgreementBuilder.HashingService, Validator.Object, ConfigurationProvider); Response = await handler.Handle(request); }
public async Task Handle(long accountLegalEntityId) { EmployerAgreementBuilder.EvaluateSignedAndPendingAgreementIdsForAllAccountLegalEntities(); EmployerAgreementBuilder.SetupMockDbContext(); var request = BuildRequest(accountLegalEntityId); var handler = new GetLastSignedAgreementQueryHandler( new Lazy <EmployerAccountsDbContext>(() => EmployerAgreementBuilder.EmployerAccountDbContext), Mock.Of <IHashingService>(), Validator.Object, ConfigurationProvider); Response = await handler.Handle(request); }