public ActorsController( ApplicationDbContext context, IMapper mapper, IFilesStorage filesStorage ) : base(context, mapper) { _filesStorage = filesStorage; }
public DownloadFileHandler( IExecutionContextService executionContextService, IUnitOfWork unitOfWork, IFilesStorage filesStorage) { _executionContextService = executionContextService; _unitOfWork = unitOfWork; _filesStorage = filesStorage; }
public FileService( IFilesStorage filesStorage, IUnitOfWork unitOfWork, IMapper mapper) { _filesStorage = filesStorage; _unitOfWork = unitOfWork; _mapper = mapper; }
public async Task DefaultMethodAvailability() { IFilesStorage.SetThresholds(5); IFilesStorage filesStorage = new InMempryFilesStorage(); var batchSize = await filesStorage.DeleteAllFiles(); var files = await filesStorage.ListFiles(); Assert.Empty(files); Assert.Equal(5, batchSize); }
public async Task GetFilesParameterized() { IFilesStorage.SetThresholds(5); IFilesStorage filesStorage = new InMempryFilesStorage(); var batchSize = await filesStorage.DeleteAllFiles(); var files = await filesStorage.ListFiles(); Assert.Empty(files); Assert.Equal(5, batchSize); }
public MoviesController ( ApplicationDbContext context, IMapper mapper, IFilesStorage filesStorage, ILogger <MoviesController> logger ) : base(context, mapper) { _filesStorage = filesStorage; _logger = logger; }
public FilesService(IMapper mapper, IFilesStorage filesStorage, IFilesInfoStorage filesInfoStorage, IObjectTypesService objectTypesService, IObjectsService objectsService) { _mapper = mapper; _filesBinaryStorage = filesStorage; _filesInfoStorage = filesInfoStorage; _objectTypesService = objectTypesService; _objectsService = objectsService; _imgConvUtil = new ImagesConversionUtil(); }
public FilesController( IContextService contextService, IDocumentRender documentRender, IFilesStorage filesStorage, IFileSaver fileSaver, IFilesOperationService filesOperationService) { _contextService = contextService; _documentRender = documentRender; _filesStorage = filesStorage; _fileSaver = fileSaver; _filesOperationService = filesOperationService; }
public FilesController( IContextService contextService, IDocumentRender documentRender, IFilesStorage filesStorage, IFileSaver fileSaver, IFilesOperationService filesOperationService, IFileStorageProvider fileStorageProvider, IOptions <AppSettings> options) { _contextService = contextService; _documentRender = documentRender; _fileStorageProvider = fileStorageProvider; _options = options; _filesStorage = filesStorage; _fileSaver = fileSaver; _filesOperationService = filesOperationService; }
public StorageController(IFilesRepository filesRepository, IFilesStorage filesStorage) { _filesRepository = filesRepository; _filesStorage = filesStorage; }