public ExposureKeySetExpireCommand(ContentDbContext dbConfig, IUtcDateTimeProvider utcDateTimeProvider, IGaenContentConfig gaenContentConfig, ILogger logger) { _DbConfig = dbConfig ?? throw new ArgumentNullException(nameof(dbConfig)); _UtcDateTimeProvider = utcDateTimeProvider ?? throw new ArgumentNullException(nameof(utcDateTimeProvider)); _GaenContentConfig = gaenContentConfig ?? throw new ArgumentNullException(nameof(gaenContentConfig)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
protected EksBatchJobMk3Tests(IDbProvider <WorkflowDbContext> workflowFac, IDbProvider <DkSourceDbContext> dkSourceFac, IDbProvider <EksPublishingJobDbContext> publishingFac, IDbProvider <ContentDbContext> contentFac, IWrappedEfExtensions efExtensions) { _WorkflowFac = workflowFac ?? throw new ArgumentNullException(nameof(workflowFac)); _DkSourceDbProvider = dkSourceFac ?? throw new ArgumentNullException(nameof(dkSourceFac)); _EksPublishingJobDbProvider = publishingFac ?? throw new ArgumentNullException(nameof(publishingFac)); _ContentDbProvider = contentFac ?? throw new ArgumentNullException(nameof(contentFac)); _EfExtensions = efExtensions ?? throw new ArgumentNullException(nameof(efExtensions)); _DateTimeProvider = new StandardUtcDateTimeProvider(); _FakeEksConfig = new FakeEksConfig { LifetimeDays = 14, PageSize = 1000, TekCountMax = 10, TekCountMin = 5 }; _Lf = new LoggerFactory(); _EksEngineLogger = new EksEngineLoggingExtensions(_Lf.CreateLogger <EksEngineLoggingExtensions>()); _SnapshotLogger = new SnapshotLoggingExtensions(_Lf.CreateLogger <SnapshotLoggingExtensions>()); _ContentWriterLogger = new EksJobContentWriterLoggingExtensions(_Lf.CreateLogger <EksJobContentWriterLoggingExtensions>()); _WorkflowTeksMarkerLogger = new MarkWorkFlowTeksAsUsedLoggingExtensions(_Lf.CreateLogger <MarkWorkFlowTeksAsUsedLoggingExtensions>()); _Snapshot = new SnapshotWorkflowTeksToDksCommand(_Lf.CreateLogger <SnapshotWorkflowTeksToDksCommand>(), new StandardUtcDateTimeProvider(), new TransmissionRiskLevelCalculationMk2(), _WorkflowFac.CreateNew(), _WorkflowFac.CreateNew, _DkSourceDbProvider.CreateNew, _EfExtensions, new IDiagnosticKeyProcessor[] { } ); _OutboundCountriesMock = new Mock <IOutboundFixedCountriesOfInterestSetting>(); _OutboundCountriesMock.Setup(x => x.CountriesOfInterest).Returns(new [] { "CY", "BG" }); }
public HttpGetCdnContentCommand(ContentDbContext dbContext, IPublishingIdService publishingIdService, GetCdnContentLoggingExtensions logger, IUtcDateTimeProvider dateTimeProvider) { _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _publishingIdService = publishingIdService ?? throw new ArgumentNullException(nameof(publishingIdService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _dateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); }
public IccService(IccBackendContentDbContext dbContext, IConfiguration configuration, IUtcDateTimeProvider dateTimeProvider, IRandomNumberGenerator randomGenerator) { _DbContext = dbContext; _Configuration = configuration; _DateTimeProvider = dateTimeProvider; _RandomGenerator = randomGenerator; }
public HttpGetCdnContentCommand(ContentDbContext dbContext, IPublishingIdService publishingIdService, ILogger <HttpGetCdnContentCommand> logger, IUtcDateTimeProvider dateTimeProvider) { _DbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _PublishingIdService = publishingIdService ?? throw new ArgumentNullException(nameof(publishingIdService)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); }
public SecretWriter(WorkflowDbContext dbContextProvider, IUtcDateTimeProvider dateTimeProvider, RandomNumberGenerator numberGenerator, ILogger <SecretWriter> logger) { _DbContextProvider = dbContextProvider ?? throw new ArgumentNullException(nameof(dbContextProvider)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _NumberGenerator = numberGenerator ?? throw new ArgumentNullException(nameof(numberGenerator)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public CreateContentDatabase(ExposureContentDbContext dbContextProvider, IUtcDateTimeProvider dateTimeProvider, IContentSigner signer, IJsonSerializer jsonSerializer) { _DbContextProvider = dbContextProvider; _DateTimeProvider = dateTimeProvider; _Formatter = new StandardContentEntityFormatter(new ZippedSignedContentFormatter(signer), new StandardPublishingIdFormatter()); _JsonSerializer = jsonSerializer; }
public WriteFromFile(ContentValidator validator, ContentInsertDbCommand insertDbCommand, IUtcDateTimeProvider dateTimeProvider, ContentDbContext contentDbContext) { _Validator = validator ?? throw new ArgumentNullException(nameof(validator)); _InsertDbCommand = insertDbCommand ?? throw new ArgumentNullException(nameof(insertDbCommand)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _ContentDbContext = contentDbContext ?? throw new ArgumentNullException(nameof(contentDbContext)); }
public RemoveExpiredManifestsCommand(Func <ContentDbContext> dbContextProvider, ILogger <RemoveExpiredManifestsCommand> logger, IManifestConfig manifestConfig, IUtcDateTimeProvider dateTimeProvider) { _DbContextProvider = dbContextProvider ?? throw new ArgumentNullException(nameof(dbContextProvider)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); _ManifestConfig = manifestConfig ?? throw new ArgumentNullException(nameof(manifestConfig)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(manifestConfig)); }
public AuthorisationWriterCommand(WorkflowDbContext workflowDb, ILogger <AuthorisationWriterCommand> logger, IUtcDateTimeProvider dateTimeProvider, WriteNewPollTokenWriter newPollTokenWriter) { _workflowDb = workflowDb ?? throw new ArgumentNullException(nameof(workflowDb)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _dateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _newPollTokenWriter = newPollTokenWriter ?? throw new ArgumentNullException(nameof(newPollTokenWriter)); }
public RemoveExpiredEksCommand(ContentDbContext dbContext, IEksConfig config, IUtcDateTimeProvider dtp, ILogger <RemoveExpiredEksCommand> logger) { _DbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _Config = config ?? throw new ArgumentNullException(nameof(config)); _Dtp = dtp ?? throw new ArgumentNullException(nameof(dtp)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
private readonly IContentEntityFormatter _Formatter; //new StandardContentEntityFormatter(new ZippedSignedContentFormatter(contentSigner), new StandardPublishingIdFormatter(), jsonSerializer1); public ManifestBuilderAndFormatter(ManifestBuilder manifestBuilder, IUtcDateTimeProvider dateTimeProvider, ILogger <ManifestBuilderAndFormatter> logger, IContentEntityFormatter formatter) { _ManifestBuilder = manifestBuilder ?? throw new ArgumentNullException(nameof(manifestBuilder)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); _Formatter = formatter ?? throw new ArgumentNullException(nameof(formatter)); }
public ExposureKeySetBuilderV1(IExposureKeySetHeaderInfoConfig headerInfoConfig, IExposureKeySetSigning exposureKeySetSigning, IUtcDateTimeProvider dateTimeProvider, IContentFormatter contentFormatter) { _ExposureKeySetSigning = exposureKeySetSigning; _DateTimeProvider = dateTimeProvider; _ContentFormatter = contentFormatter; _Config = headerInfoConfig; }
public RemoveExpiredWorkflowsCommand(Func <WorkflowDbContext> dbContext, ExpiredWorkflowLoggingExtensions logger, IUtcDateTimeProvider dtp, IWorkflowConfig config) { _DbContextProvider = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); _Dtp = dtp ?? throw new ArgumentNullException(nameof(dtp)); _Config = config ?? throw new ArgumentNullException(nameof(config)); }
public ContentDatabaseCreateCommand(ContentDbContext dbContextProvider, IUtcDateTimeProvider dateTimeProvider, ContentValidator validator, ContentInsertDbCommand insertDbCommand) { _DbContextProvider = dbContextProvider ?? throw new ArgumentNullException(nameof(dbContextProvider)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _Validator = validator ?? throw new ArgumentNullException(nameof(validator)); _InsertDbCommand = insertDbCommand ?? throw new ArgumentNullException(nameof(insertDbCommand)); }
public EksStuffingGeneratorMk2(ITransmissionRiskLevelCalculationMk2 trlCalculation, IRandomNumberGenerator rng, IUtcDateTimeProvider dateTimeProvider, IEksConfig eksConfig) { _TrlCalculation = trlCalculation ?? throw new ArgumentNullException(nameof(trlCalculation)); _Rng = rng ?? throw new ArgumentNullException(nameof(rng)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _EksConfig = eksConfig ?? throw new ArgumentNullException(nameof(eksConfig)); }
public RemoveExpiredEksCommand(ContentDbContext dbContext, IEksConfig config, IUtcDateTimeProvider dtp, ExpiredEksLoggingExtensions logger) { _dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _config = config ?? throw new ArgumentNullException(nameof(config)); _dtp = dtp ?? throw new ArgumentNullException(nameof(dtp)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public ContentInsertDbCommand(ContentDbContext dbContext, IUtcDateTimeProvider dateTimeProvider, IPublishingIdService publishingIdService, ZippedSignedContentFormatter signedFormatter) { _DbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _PublishingIdService = publishingIdService ?? throw new ArgumentNullException(nameof(publishingIdService)); _SignedFormatter = signedFormatter ?? throw new ArgumentNullException(nameof(signedFormatter)); }
public JwtService(IIccPortalConfig iccPortalConfig, IUtcDateTimeProvider utcDateTimeProvider, ILogger <JwtService> logger) { _IccPortalConfig = iccPortalConfig ?? throw new ArgumentNullException(nameof(iccPortalConfig)); _DateTimeProvider = utcDateTimeProvider ?? throw new ArgumentNullException(nameof(utcDateTimeProvider)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public DynamicManifestReader(ManifestBuilder manifestBuilder, IUtcDateTimeProvider dateTimeProvider, IPublishingId publishingId, ISigner signer) { _ManifestBuilder = manifestBuilder; _DateTimeProvider = dateTimeProvider; _PublishingId = publishingId; _Signer = signer; }
public RemoveExpiredIksInCommand(Func <IksInDbContext> dbContext, RemoveExpiredIksLoggingExtensions logger, IUtcDateTimeProvider utcDateTimeProvider, IIksCleaningConfig iksCleaningConfig) { _DbContextProvider = dbContext ?? throw new ArgumentNullException(nameof(dbContext)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); _UtcDateTimeProvider = utcDateTimeProvider ?? throw new ArgumentNullException(nameof(utcDateTimeProvider)); _IksCleaningConfig = iksCleaningConfig; }
public GetLatestManifestCommand(IUtcDateTimeProvider dateTimeProvider, IDbContextProvider <ExposureContentDbContext> dbContext, ManifestBuilder manifestBuilder, IAgConfig agConfig, IPublishingIdCreator publishingIdCreator) { _DateTimeProvider = dateTimeProvider; _DbContext = dbContext; _ManifestBuilder = manifestBuilder; _AgConfig = agConfig; _PublishingIdCreator = publishingIdCreator; }
public GetLatestManifestCommand(IUtcDateTimeProvider dateTimeProvider, ExposureContentDbContext dbContext, ManifestBuilder manifestBuilder, IGaenContentConfig gaenContentConfig, IPublishingId publishingId) { _DateTimeProvider = dateTimeProvider; _DbContext = dbContext; _ManifestBuilder = manifestBuilder; _GaenContentConfig = gaenContentConfig; _PublishingId = publishingId; }
public IksImportCommand(DkSourceDbContext dkSourceDbContext, IDiagnosticKeyProcessor[] importProcessors, ITekValidatorConfig tekValidatorConfig, IUtcDateTimeProvider dateTimeProvider, ILogger <IksImportCommand> logger) { _dkSourceDbContext = dkSourceDbContext ?? throw new ArgumentNullException(nameof(dkSourceDbContext)); _importProcessors = importProcessors ?? throw new ArgumentNullException(nameof(importProcessors)); _tekValidatorConfig = tekValidatorConfig ?? throw new ArgumentNullException(nameof(tekValidatorConfig)); _dateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public HttpPostRegisterSecret(ISecretWriter writer, ILogger <HttpPostRegisterSecret> logger, IWorkflowTime workflowTime, IUtcDateTimeProvider utcDateTimeProvider, ILabConfirmationIdFormatter labConfirmationIdFormatter) { _Writer = writer ?? throw new ArgumentNullException(nameof(writer)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); _WorkflowTime = workflowTime ?? throw new ArgumentNullException(nameof(workflowTime)); _UtcDateTimeProvider = utcDateTimeProvider ?? throw new ArgumentNullException(nameof(utcDateTimeProvider)); _LabConfirmationIdFormatter = labConfirmationIdFormatter ?? throw new ArgumentNullException(nameof(labConfirmationIdFormatter)); }
public ContentPublisher(PublishContentLoggingExtensions logger, IUtcDateTimeProvider dateTimeProvider, ContentValidator validator, ContentDbContext contentDbContext, ContentInsertDbCommand insertDbCommand) { _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _Validator = validator ?? throw new ArgumentNullException(nameof(validator)); _ContentDbContext = contentDbContext ?? throw new ArgumentNullException(nameof(contentDbContext)); _InsertDbCommand = insertDbCommand ?? throw new ArgumentNullException(nameof(insertDbCommand)); }
public SnapshotEksInputMk1(ILogger <SnapshotEksInputMk1> logger, ITransmissionRiskLevelCalculation transmissionRiskLevelCalculation, IUtcDateTimeProvider dateTimeProvider, WorkflowDbContext workflowDbContext, Func <PublishingJobDbContext> publishingDbContextFactory) { _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); _TransmissionRiskLevelCalculation = transmissionRiskLevelCalculation ?? throw new ArgumentNullException(nameof(transmissionRiskLevelCalculation)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _WorkflowDbContext = workflowDbContext ?? throw new ArgumentNullException(nameof(workflowDbContext)); _PublishingDbContextFactory = publishingDbContextFactory ?? throw new ArgumentNullException(nameof(publishingDbContextFactory)); }
public PublishContentCommand(ContentValidator validator, ContentInsertDbCommand insertDbCommand, IUtcDateTimeProvider dateTimeProvider, ContentDbContext contentDbContext, ILogger <PublishContentCommand> logger) { _Validator = validator ?? throw new ArgumentNullException(nameof(validator)); _InsertDbCommand = insertDbCommand ?? throw new ArgumentNullException(nameof(insertDbCommand)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _ContentDbContext = contentDbContext ?? throw new ArgumentNullException(nameof(contentDbContext)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public JwtClaimValidator(ITheIdentityHubService theIdentityHubService, ILogger <JwtClaimValidator> logger, IUtcDateTimeProvider dateTimeProvider, IIccPortalConfig iccPortalConfig) { _TheIdentityHubService = theIdentityHubService ?? throw new ArgumentNullException(nameof(theIdentityHubService)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider)); _IccPortalConfig = iccPortalConfig ?? throw new ArgumentNullException(nameof(iccPortalConfig)); }
public CreateContentDatabase(IConfiguration configuration, IUtcDateTimeProvider dateTimeProvider, IContentSigner signer) { var config = new StandardEfDbConfig(configuration, "Content"); var builder = new SqlServerDbContextOptionsBuilder(config); _DbContextProvider = new ExposureContentDbContext(builder.Build()); _DateTimeProvider = dateTimeProvider; _Formatter = new StandardContentEntityFormatter(new ZippedSignedContentFormatter(signer), new StandardPublishingIdFormatter()); }