private void ConstructPackageBuilderService(IZipPackageBuilderConfig configuration) { _packageBuilderService = new PackageBuilderService( _dbToBinaryService.Object, configuration, _temporaryExposureKeyRepository.Object, _keysListToMemoryStreamConverter.Object ); }
public DatabaseKeysToBinaryStreamMapperService(IExposureKeyMapper exposureKeyMapper, IZipPackageBuilderConfig appSettingsConfig) { _exposureKeyMapper = exposureKeyMapper; _appSettingsConfig = appSettingsConfig; }
private readonly int _fetchCommandTimeout = 0;//set default value to 0 so the timeout is not changed unless a value is given in the config public PackageBuilderService(IDatabaseKeysToBinaryStreamMapperService databaseKeysToBinaryStreamMapperService, IZipPackageBuilderConfig configuration, ITemporaryExposureKeyRepository temporaryExposureKeyRepository, IKeysListToMemoryStreamConverter keysListToMemoryStreamConverter) { _databaseKeysToBinaryStreamMapperService = databaseKeysToBinaryStreamMapperService; _temporaryExposureKeyRepository = temporaryExposureKeyRepository; _keysListToMemoryStreamConverter = keysListToMemoryStreamConverter; _maxKeysPerFile = configuration.MaxKeysPerFile; _fetchCommandTimeout = configuration.FetchCommandTimeout; }