public FactsBase(int maximumValidationFailures = 5) { _certificateStore = new Mock <ICertificateStore>(); _certificateValidationService = new Mock <ICertificateValidationService>(); _certificateVerifier = new Mock <ICertificateVerifier>(); _validationEnqueuer = new Mock <IPackageValidationEnqueuer>(); _featureFlagService = new Mock <IFeatureFlagService>(); _featureFlagService.SetReturnsDefault(true); _message = new CertificateValidationMessage( CertificateKey, ValidationId, revalidateRevokedCertificate: false, sendCheckValidator: true); var logger = new Mock <ILogger <CertificateValidationMessageHandler> >(); _target = new CertificateValidationMessageHandler( _certificateStore.Object, _certificateValidationService.Object, _certificateVerifier.Object, _validationEnqueuer.Object, _featureFlagService.Object, logger.Object, maximumValidationFailures); }
public CertificateValidationMessageHandlerIntegrationTests(CertificateIntegrationTestFixture fixture) { _fixture = fixture; _context = new Mock<IValidationEntitiesContext>(); _telemetryService = new Mock<ITelemetryService>(); _certificateStore = new Mock<ICertificateStore>(); _validationEnqueuer = new Mock<IPackageValidationEnqueuer>(); _featureFlagService = new Mock<IFeatureFlagService>(); _featureFlagService.SetReturnsDefault(true); var certificateValidationService = new CertificateValidationService( _context.Object, _telemetryService.Object, Mock.Of<ILogger<CertificateValidationService>>()); _target = new CertificateValidationMessageHandler( _certificateStore.Object, certificateValidationService, new OnlineCertificateVerifier(), _validationEnqueuer.Object, _featureFlagService.Object, Mock.Of<ILogger<CertificateValidationMessageHandler>>()); }
public FactsBase(int maximumValidationFailures = 5) { _certificateStore = new Mock <ICertificateStore>(); _certificateValidationService = new Mock <ICertificateValidationService>(); _certificateVerifier = new Mock <ICertificateVerifier>(); _message = new CertificateValidationMessage(CertificateKey, ValidationId, revalidateRevokedCertificate: false); var logger = new Mock <ILogger <CertificateValidationMessageHandler> >(); _target = new CertificateValidationMessageHandler( _certificateStore.Object, _certificateValidationService.Object, _certificateVerifier.Object, logger.Object, maximumValidationFailures); }
public CertificateValidationMessageHandlerIntegrationTests(CertificateIntegrationTestFixture fixture) { _fixture = fixture; _context = new Mock <IValidationEntitiesContext>(); _telemetryService = new Mock <ITelemetryService>(); _certificateStore = new Mock <ICertificateStore>(); var certificateValidationService = new CertificateValidationService( _context.Object, _telemetryService.Object, Mock.Of <ILogger <CertificateValidationService> >()); _target = new CertificateValidationMessageHandler( _certificateStore.Object, certificateValidationService, new OnlineCertificateVerifier(), Mock.Of <ILogger <CertificateValidationMessageHandler> >()); }