public ImagesController(IWebHostEnvironment env, ImagePresenter imagePresenter, ErrorPresenter basicPresenter, IUploadedFileRepository uploadedFileRepository)
 {
     _env                    = env;
     _imagePresenter         = imagePresenter;
     _basicPresenter         = basicPresenter;
     _uploadedFileRepository = uploadedFileRepository;
 }
Ejemplo n.º 2
0
 public DownloadController(IUploadedFileRepository uploadedFileRepository, IFileAccessLogger fileAccessLogger, ITransitPasswordProtector passwordProtector, ILogger <DownloadController> logger)
 {
     this._logger                 = logger;
     this._passwordProtector      = passwordProtector;
     this._fileAccessLogger       = fileAccessLogger;
     this._uploadedFileRepository = uploadedFileRepository;
 }
Ejemplo n.º 3
0
 public AppObjectInfoMapDC(ISupplierDbContext supplierDbContext, ISupplierRepository supplierRepository, IEmailHelper emailHelper, IUploadedFileRepository uploadedFileRepository, IPurchaseRequsitionRepository purchaseRequsitionRepository)
 {
     _supplierDbContext            = supplierDbContext;
     _supplierRepository           = supplierRepository;
     _emailHelper                  = emailHelper;
     _uploadedFileRepository       = uploadedFileRepository;
     _purchaseRequsitionRepository = purchaseRequsitionRepository;
 }
Ejemplo n.º 4
0
 public CommonService(
     IUploadedFileRepository uploadedFileRepository,
     IDepartmentRepository departmentRepository,
     ILogger log)
 {
     UploadedFileRepository = uploadedFileRepository;
     DepartmentRepository   = departmentRepository;
     Log = log;
 }
Ejemplo n.º 5
0
 public UploadedFileService(
     IUploadedFileRepository uploadedFileRepository,
     IFolderRepository folderRepository,
     IFileService fileService)
 {
     _uploadedFileRepository = uploadedFileRepository;
     _folderRepository       = folderRepository;
     _fileService            = fileService;
 }
Ejemplo n.º 6
0
 protected ApiControllerBase(
     ICommonService commonService,
     IUnitOfWork untOfWork)
 {
     CommonService          = commonService;
     UnitOfWork             = untOfWork;
     DepartmentRepository   = commonService.DepartmentRepository;
     UploadedFileRepository = commonService.UploadedFileRepository;
 }
 public LanguagesController(ILanguageRepository languageRepository,
                            IDocumentRepository documentRepository,
                            IUploadedFileRepository uploadedFileRepository,
                            ITranslator translator)
 {
     _languageRepository     = languageRepository;
     _documentRepository     = documentRepository;
     _uploadedFileRepository = uploadedFileRepository;
     _translator             = translator;
 }
Ejemplo n.º 8
0
        private static ExpiredFileRemovalJob GetTestObject(List <UploadedFile> files)
        {
            IUploadedFileRepository repository = Substitute.For <IUploadedFileRepository>();

            repository.GetFiles().Returns(Task.FromResult <IList <UploadedFile> >(files.ToList()));
            repository.When(r => r.Delete(Arg.Any <FileIdentifier>()))
            .Do(c => files.RemoveAll(f => c.Arg <FileIdentifier>().Equals(f.Id)));

            return(new ExpiredFileRemovalJob(repository, FakeLogger.Get <ExpiredFileRemovalJob>()));
        }
Ejemplo n.º 9
0
 public ExperiencesController(IExperienceRepository experienceRepository,
                              IDocumentRepository documentRepository,
                              IUploadedFileRepository uploadedFileRepository,
                              ITranslator translator)
 {
     _experienceRepository   = experienceRepository;
     _documentRepository     = documentRepository;
     _uploadedFileRepository = uploadedFileRepository;
     _translator             = translator;
 }
 public EducationsController(IEducationRepository educationRepository,
                             IDocumentRepository documentRepository,
                             IUploadedFileRepository uploadedFileRepository,
                             ITranslator translator)
 {
     _educationRepository    = educationRepository;
     _documentRepository     = documentRepository;
     _uploadedFileRepository = uploadedFileRepository;
     _translator             = translator;
 }
 public FilesController(IWebHostEnvironment webHostEnvironment,
                        IDirectoryRepository directoryRepository,
                        IUploadedFileRepository uploadedFileRepository,
                        ITranslator translator)
 {
     _webHostEnvironment     = webHostEnvironment;
     _directoryRepository    = directoryRepository;
     _uploadedFileRepository = uploadedFileRepository;
     _translator             = translator;
 }
 public CoursesController(ITrainingCourseRepository trainingCourseRepository,
                          IDocumentRepository documentRepository,
                          IUploadedFileRepository uploadedFileRepository,
                          ITranslator translator)
 {
     _trainingCourseRepository = trainingCourseRepository;
     _documentRepository       = documentRepository;
     _uploadedFileRepository   = uploadedFileRepository;
     _translator = translator;
 }
Ejemplo n.º 13
0
 public UploadedFileController(ApplicationDbContext context, IUnitOfWork unitOfWork,
     IMapper mapper, IUploadedFileRepository uploadedFileRepository, IHostingEnvironment host,
     IGroupRepository groupRepository)
 {
     this.context = context;
     this.unitOfWork = unitOfWork;
     this.mapper = mapper;
     this.uploadedFileRepository = uploadedFileRepository;
     this.groupRepository = groupRepository;
     this.host = host;
 }
 public RegisterUserUseCase(
     IUserRepository userRepository,
     IUploadedFileRepository uploadedFileRepository,
     IUploadService uploadService,
     IImageRepository imageRepository
     )
 {
     _userRepository         = userRepository;
     _uploadedFileRepository = uploadedFileRepository;
     _uploadService          = uploadService;
     _imageRepository        = imageRepository;
 }
Ejemplo n.º 15
0
 public NewVideoUseCase(
     IUserRepository userRepository,
     IUploadService uploadService,
     IVideoRepository videoRepository,
     IImageRepository imageRepository,
     IUploadedFileRepository uploadedFileRepository,
     IChannelRepository channelRepository
     )
 {
     _userRepository         = userRepository;
     _uploadService          = uploadService;
     _videoRepository        = videoRepository;
     _imageRepository        = imageRepository;
     _uploadedFileRepository = uploadedFileRepository;
     _channelRepository      = channelRepository;
 }
Ejemplo n.º 16
0
    public async Task <IActionResult> Complete(FileIdentifier id, [FromServices] IUploadedFileRepository uploadedFileRepository)
    {
        if (!this.ModelState.IsValid)
        {
            return(this.BadRequest());
        }

        UploadedFile?uploadedFile = await uploadedFileRepository.GetFile(id);

        if (uploadedFile == null)
        {
            this._logger.LogWarning(LogEvents.UploadNotFound, "Unable to find uploaded file '{0}'", id);
            return(this.NotFound("A system error occurred - unable to find just uploaded file"));
        }

        if (this.User.HasClaim(KnownClaims.RestrictionId, id.ToString()))
        {
            await this.HttpContext.SignOutAsync(KnownAuthenticationScheme.PassphraseScheme);
        }

        return(this.View(uploadedFile));
    }
Ejemplo n.º 17
0
 public DownloadController(IUploadedFileRepository uploadedFileRepository, IFileAccessLogger fileAccessLogger, ILogger <DownloadController> logger)
 {
     this._logger                 = logger;
     this._fileAccessLogger       = fileAccessLogger;
     this._uploadedFileRepository = uploadedFileRepository;
 }
Ejemplo n.º 18
0
 public ExpiredFileRemovalJob(IUploadedFileRepository uploadedFileRepository, ILogger <ExpiredFileRemovalJob> logger)
 {
     this._uploadedFileRepository = uploadedFileRepository;
     this._logger = logger;
 }
Ejemplo n.º 19
0
 public UploadedFileService(IUploadedFileRepository uploadedFileRepository)
 {
     _uploadedFileRepository = uploadedFileRepository;
 }
Ejemplo n.º 20
0
 public CommonService(
     IUploadedFileRepository uploadedFileRepository,
     IDepartmentRepository departmentRepository)
 {
     UploadedFileRepository = uploadedFileRepository;
 }
Ejemplo n.º 21
0
 public FileUploadController(ISupplierDbContext supplierDbContext, IUploadedFileRepository uploadedFileRepository)
 {
     _supplierDbContext = supplierDbContext;
     _uploadedFile      = uploadedFileRepository;
 }
Ejemplo n.º 22
0
 public FilesController(IUploadedFileRepository uploadedFileRepository)
 {
     this._uploadedFileRepository = uploadedFileRepository;
 }
Ejemplo n.º 23
0
 public UploadedFileService(IUploadedFileRepository uploadedFileRepository)
 {
     _uploadedFileRepository = uploadedFileRepository;
 }
Ejemplo n.º 24
0
 public UploadController(IUploadProgressManager uploadProgressManager, IUploadedFileRepository uploadedFileRepository, ILogger <UploadController> logger)
 {
     this._uploadProgressManager = uploadProgressManager;
     this._logger = logger;
     this._uploadedFileRepository = uploadedFileRepository;
 }
Ejemplo n.º 25
0
 public UserController(IUploadedFileRepository uploadedFileRepository, IUnitOfWork unitOfWork)
 {
     _uploadedFileRepository = uploadedFileRepository;
     _unitOfWork             = unitOfWork;
 }