public ImageController(IFileAccessService fileService, IFileMetadataService metadataService, IImageService imageService, ILogger <ImageController> logger) { _fileService = fileService ?? throw new ArgumentNullException(nameof(fileService)); _metadataService = metadataService ?? throw new ArgumentNullException(nameof(metadataService)); _imageService = imageService ?? throw new ArgumentNullException(nameof(imageService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
/// <summary> /// Initializes a new instance /// </summary> /// <param name="blob"></param> /// <param name="metaData"></param> public FilesController( IFileBlobService blob, IFileMetadataService metaData ) { _blobService = blob; _metaData = metaData; }
public ImageController( ILogger <ImageController> logger, IImageService imageService, IFileMetadataService fileMetadataService, IMapper mapper) { _logger = logger; _imageService = imageService; _fileMetadataService = fileMetadataService; _mapper = mapper; }
public ValidationFileService( ICoreFileStorageService fileStorageService, IFileDownloader fileDownloader, ITelemetryService telemetryService, ILogger <ValidationFileService> logger, IFileMetadataService fileMetadataService) : base(fileStorageService, fileMetadataService) { _fileStorageService = fileStorageService ?? throw new ArgumentNullException(nameof(fileStorageService)); _fileDownloader = fileDownloader ?? throw new ArgumentNullException(nameof(fileDownloader)); _telemetryService = telemetryService ?? throw new ArgumentNullException(nameof(telemetryService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _fileMetadataService = fileMetadataService ?? throw new ArgumentNullException(nameof(fileMetadataService)); }
public TimerEventHandler( IGeneratedObjectFileSystemService filesService, IGeneratedObjectsService mongoService, IFileMetadataService fileMetadataService, IFileStatusService fileStatusService, IConfiguration configuration) { _fileMetadataService = fileMetadataService; _filesService = filesService; _mongoService = mongoService; _fileStatusService = fileStatusService; _filesReadingLimit = GetFilesReadingLimit(configuration, 10); }
public FileMetadataTest() { _mapper = CoreServices.GetMapper(); _repositoryMock = new Mock <IFileMetadataRepository>(); _mapperFactoryMock = new Mock <IMapperFactory>(); _unitOfWorkMock = new Mock <IUnitOfWork>(); _metadata = GenerateMetadata(); _statuses = GenerateStatuses(); ConfigureRepositoryMock(_repositoryMock); ConfigureMapperFactoryMock(_mapperFactoryMock); ConfigureUOWMock(_unitOfWorkMock); _fileMetadataService = new FileMetadataService(_unitOfWorkMock.Object, _repositoryMock.Object, _mapperFactoryMock.Object); }
public CorePackageFileService(ICoreFileStorageService fileStorageService, IFileMetadataService metadata) { _fileStorageService = fileStorageService ?? throw new ArgumentNullException(nameof(fileStorageService)); _metadata = metadata ?? throw new ArgumentNullException(nameof(metadata)); }