public PackagesController( IPackageService packageService, IUploadFileService uploadFileService, IMessageService messageService, ISearchService searchService, IAutomaticallyCuratePackageCommand autoCuratedPackageCmd, IPackageFileService packageFileService, IEntitiesContext entitiesContext, IAppConfiguration config, IIndexingService indexingService, ICacheService cacheService, EditPackageService editPackageService, IPackageDeleteService packageDeleteService, ISupportRequestService supportRequestService, AuditingService auditingService) { _packageService = packageService; _uploadFileService = uploadFileService; _messageService = messageService; _searchService = searchService; _autoCuratedPackageCmd = autoCuratedPackageCmd; _packageFileService = packageFileService; _entitiesContext = entitiesContext; _config = config; _indexingService = indexingService; _cacheService = cacheService; _editPackageService = editPackageService; _packageDeleteService = packageDeleteService; _supportRequestService = supportRequestService; _auditingService = auditingService; }
public UploadFilesController(ILogger <UploadFilesController> logger, IStringLocalizer <UploadFilesController> localizer, IUploadFileService uploadFileService) { _logger = logger; _localizer = localizer; _uploadFileService = uploadFileService; }
public PackagesController( IPackageService packageService, IUploadFileService uploadFileService, IMessageService messageService, ISearchService searchService, IAutomaticallyCuratePackageCommand autoCuratedPackageCmd, IPackageFileService packageFileService, IEntitiesContext entitiesContext, IAppConfiguration config, IIndexingService indexingService, ICacheService cacheService, EditPackageService editPackageService, IPackageDeleteService packageDeleteService, ISupportRequestService supportRequestService) { _packageService = packageService; _uploadFileService = uploadFileService; _messageService = messageService; _searchService = searchService; _autoCuratedPackageCmd = autoCuratedPackageCmd; _packageFileService = packageFileService; _entitiesContext = entitiesContext; _config = config; _indexingService = indexingService; _cacheService = cacheService; _editPackageService = editPackageService; _packageDeleteService = packageDeleteService; _supportRequestService = supportRequestService; }
public RequisitoController(UserManager <ApplicationUser> userManager, SistemasLegalesContext context, IEmailSender emailSender, IUploadFileService uploadFileService) { this.userManager = userManager; db = context; this.emailSender = emailSender; this.uploadFileService = uploadFileService; }
public ActionResult OnPostUploadFilesAjax(List <IFormFile> files, IUploadFileService uploadFileService) { List <AttachmentViewModel> attachments = new List <AttachmentViewModel>(); try { //UploadFiles(files); //_uploadFileService.AddFiles(User.Identity.Name, _key, files); foreach (var file in files) { attachments.Add(new AttachmentViewModel { FileName = file.FileName, Size = file.Length }); } } catch (Exception ex) { return(new JsonResult(new { status = "failed", message = ex.Message })); } ViewData["Attachments"] = attachments; return(new PartialViewResult() { ViewName = "_AttachmentsView", ViewData = ViewData }); }
public PackagesController( IPackageService packageService, IUploadFileService uploadFileService, IUserService userService, IMessageService messageService, ISearchService searchService, IAutomaticallyCuratePackageCommand autoCuratedPackageCmd, INuGetExeDownloaderService nugetExeDownloaderService, IPackageFileService packageFileService, IEntitiesContext entitiesContext, IAppConfiguration config, IIndexingService indexingService, ICacheService cacheService) { _packageService = packageService; _uploadFileService = uploadFileService; _userService = userService; _messageService = messageService; _searchService = searchService; _autoCuratedPackageCmd = autoCuratedPackageCmd; _nugetExeDownloaderService = nugetExeDownloaderService; _packageFileService = packageFileService; _entitiesContext = entitiesContext; _config = config; _indexingService = indexingService; _cacheService = cacheService; }
public void Setup() { _hostingEnvironment = new Mock <IHostingEnvironment>(); _hostingEnvironment.Setup(m => m.ContentRootPath).Returns(Directory.GetCurrentDirectory()); _uploadFileService = new UploadFileService(_hostingEnvironment.Object); }
public AppBiz(ConfigContext configContext, IAppListService appListService, IUploadFileService uploadFileService, IMapper mapper, IAuthService authService) { _configContext = configContext; _appListService = appListService; _uploadFileService = uploadFileService; _mapper = mapper; _authService = authService; }
public AuthController(IAccountService accountService, IJwtTokenProvider jwtTokenProvider, IUploadFileService uploadFileService, IPushNotificationService pushNotificationService, IMapper mapper) { _accountService = accountService; _jwtTokenProvider = jwtTokenProvider; _uploadFileService = uploadFileService; _pushNotificationService = pushNotificationService; _mapper = mapper; }
public GetPostFileServerAction(IServiceProvider serviceProvider, PostFileRepository postFileRepository, IUploadFileService uploadFileService, PostFileDownloadRepository postFileDownloadRepository, ITimeService timeService, TextService textService) : base(serviceProvider) { _postFileRepository = postFileRepository; _uploadFileService = uploadFileService; _postFileDownloadRepository = postFileDownloadRepository; _timeService = timeService; _textService = textService; }
public CertificadoController(CALIDADContext context, IEmailSender _emailSender, IHostingEnvironment hostingEnvironment, IUploadFileService uploadFileService, RoleManager <IdentityRole> _roleManager, UserManager <ApplicationUser> _userManager) { this.userManager = _userManager; this.roleManager = _roleManager; this.emailSender = _emailSender; db = context; _hostingEnvironment = hostingEnvironment; this.uploadFileService = uploadFileService; }
public HomeController( IThesisService thesisService, IUploadFileService uploadFileService, ContextService ContextService) { this.ThesisService = thesisService; this.UploadFileService = uploadFileService; this.ContextService = ContextService; }
public FeedBackController(IFeedBackService service, IMapper mapper, IPagingSupport <FeedBack> pagingSupport, IGalleryService galleryService, IImageService imageService, IUploadFileService uploadFileService) { _service = service; _mapper = mapper; _pagingSupport = pagingSupport; _galleryService = galleryService; _imageService = imageService; _uploadFileService = uploadFileService; }
public void SetUp() { #region Initial fake data of constructor _configContext = new ConfigContext { McpDb = "Data Source=10.37.36.195;Initial Catalog=MCPDev;uid=gary;pwd=Unsoul418!;", UploadPath = "C:/AppOs", ImageEndPoint = "http://*****:*****@$ "{AppContext.BaseDirectory.Substring(0, AppContext.BaseDirectory.IndexOf(" Wistron.AppStore.Web "))}\{@" Wistron.AppStore.Web \ Wistron.AppStore.Web \ wwwroot\unittest "}";
public AccountController(IAccountService accountService, IFeedBackService feedBackService, IImageService imageService, IGalleryService galleryService, IUploadFileService uploadFileService, IMapper mapper, IPagingSupport <Account> pagingSupport) { _accountService = accountService; _feedBackService = feedBackService; _imageService = imageService; _galleryService = galleryService; _uploadFileService = uploadFileService; _mapper = mapper; _pagingSupport = pagingSupport; }
public FileController(IMvcProcessor mvcProcessor, IMvcRequestExceptionHandlerService mvcRequestExceptionHandlerService, IRequestDeserializer requestDeserializer, IUploadFileService uploadFileService, ILogger <FileController> logger, TextService textService, InputContextService inputContextService) { _mvcProcessor = mvcProcessor; _mvcRequestExceptionHandlerService = mvcRequestExceptionHandlerService; _requestDeserializer = requestDeserializer; _uploadFileService = uploadFileService; _logger = logger; _textService = textService; _inputContextService = inputContextService; }
public ServiceController(IBeautyServicesService service, IMapper mapper, IPagingSupport <Service> pagingSupport, IFeedBackService feedbackService, IGalleryService galleryService, IImageService imageService, IUploadFileService uploadFileService) { _service = service; _mapper = mapper; _pagingSupport = pagingSupport; _feedbackService = feedbackService; _galleryService = galleryService; _imageService = imageService; _uploadFileService = uploadFileService; }
public PackagesController( IPackageService packageSvc, IUploadFileService uploadFileSvc, IUserService userSvc, IMessageService messageService) { this.packageSvc = packageSvc; this.uploadFileSvc = uploadFileSvc; this.userSvc = userSvc; this.messageService = messageService; }
public FileController( IUploadFileService uploadFileService, IDeleteFileService deleteFileService, IGetFileService getFileService, IGetClaimService getClaimService) { this.uploadFileService = uploadFileService; this.deleteFileService = deleteFileService; this.getFileService = getFileService; this.getClaimService = getClaimService; }
public PackagesController( IPackageService packageSvc, IUploadFileService uploadFileSvc, IUserService userSvc, IMessageService messageService, IAutomaticallyCuratePackageCommand autoCuratedPackageCmd, IConfiguration configuration) { this.packageSvc = packageSvc; this.uploadFileSvc = uploadFileSvc; this.userSvc = userSvc; this.messageService = messageService; this.autoCuratedPackageCmd = autoCuratedPackageCmd; Configuration = configuration; }
public SampleOrderModel(IHostingEnvironment hostingEnvironment, IUploadFileService uploadFileService, IExamplesRepository examplesRepository, ExampleDbContext context) { _hostingEnvironment = hostingEnvironment; _uploadFileService = uploadFileService; _context = context; _exampleRepository = examplesRepository; Orders = new List <OrderViewModel>(); }
public void SetUp() { _configContext = new ConfigContext { McpDb = "Data Source=10.37.36.195;Initial Catalog=MCPDev;uid=gary;pwd=Unsoul418!;", UploadPath = "C:/AppOs", ImageEndPoint = "http://localhost:53322/app", IosDownloadAddress = "itms-services://?action=download-manifest&url=" }; _targetObj = new UploadFileService(_configContext); }
public UploadPostFileServerAction(IServiceProvider serviceProvider, ProfileRepository profileRepository, PostFileRepository postFileRepository, ITimeService timeService, IUploadFileService uploadFileService, ILogger <UploadPostFileServerAction> logger, IFileHelperService fileHelperService, CourseRepository courseRepository, TextService textService, UniwikiContext uniwikiContext) : base(serviceProvider) { _profileRepository = profileRepository; _postFileRepository = postFileRepository; _timeService = timeService; _uploadFileService = uploadFileService; _logger = logger; _fileHelperService = fileHelperService; _courseRepository = courseRepository; _textService = textService; _uniwikiContext = uniwikiContext; }
public PackagesController( IPackageService packageSvc, IUploadFileService uploadFileSvc, IUserService userSvc, IMessageService messageService, IAutomaticallyCuratePackageCommand autoCuratedPackageCmd, IConfiguration configuration, ISearchService searchService) { this.packageSvc = packageSvc; this.uploadFileSvc = uploadFileSvc; this.userSvc = userSvc; this.messageService = messageService; this.autoCuratedPackageCmd = autoCuratedPackageCmd; Configuration = configuration; this.searchSvc = searchService; }
public AssignmentController(IAssignmentService assignmentService, IDbService <Invoice> invoiceService, IDbService <AssignmentStatus> assignmentStatusService, IUnitOfWork uow, IDbService <Customer> customerService, IUploadFileService uploadFileService, IDbService <Adjustment> overpaymentService, IDbService <InvoiceAttachment> invoiceAttachmentService, IDbService <Attachment> attachmentService) { _assignmentService = assignmentService; _invoiceService = invoiceService; _assignmentStatusService = assignmentStatusService; _customerService = customerService; _overpaymentService = overpaymentService; _invoiceAttachmentService = invoiceAttachmentService; _attachmentService = attachmentService; _uploadFileService = uploadFileService; _uow = uow; }
public DemoTestAttachmentModel(IHostingEnvironment hostingEnvironment, IUploadFileService uploadFileService) { _hostingEnvironment = hostingEnvironment; _uploadFileService = uploadFileService; Orders = new List <OrderViewModel> { new OrderViewModel { Id = 1, Customer = "Apple", OrderDate = DateTime.Parse("12/1/2018"), Attachments = new List <OrderAttachmentViewModel>(), Details = new List <OrderDetailViewModel> { new OrderDetailViewModel { OrderId = 1, ItemNo = 1, PartNo = "iPad Pro 11", UnitPrice = 799, Quantity = 1 }, new OrderDetailViewModel { OrderId = 1, ItemNo = 2, PartNo = "iPad Pro 12.9", UnitPrice = 899, Quantity = 1 } } }, new OrderViewModel { Id = 2, Customer = "Google", OrderDate = DateTime.Parse("12/2/2018"), Attachments = new List <OrderAttachmentViewModel>(), Details = new List <OrderDetailViewModel> { new OrderDetailViewModel { OrderId = 2, ItemNo = 1, PartNo = "Slate 12", UnitPrice = 699, Quantity = 1 } } } }; }
public PackagesController( IPackageService packageSvc, IUploadFileService uploadFileSvc, IUserService userSvc, IMessageService messageService, ISearchService searchSvc) { this.packageSvc = packageSvc; this.uploadFileSvc = uploadFileSvc; this.userSvc = userSvc; this.messageService = messageService; this.searchSvc = searchSvc; }
public PackagesController( ICryptographyService cryptoSvc, IPackageService packageSvc, IUploadFileService uploadFileSvc, IUserService userSvc, IMessageService messageService) { this.cryptoSvc = cryptoSvc; this.packageSvc = packageSvc; this.uploadFileSvc = uploadFileSvc; this.userSvc = userSvc; this.messageService = messageService; }
public PackagesController( IPackageService packageSvc, IUploadFileService uploadFileSvc, IUserService userSvc, IMessageService messageService, ISearchService searchSvc, IAutomaticallyCuratePackageCommand autoCuratedPackageCmd, INuGetExeDownloaderService nugetExeDownloaderSvc, IConfiguration configuration) { this.packageSvc = packageSvc; this.uploadFileSvc = uploadFileSvc; this.userSvc = userSvc; this.messageService = messageService; this.searchSvc = searchSvc; this.autoCuratedPackageCmd = autoCuratedPackageCmd; this.nugetExeDownloaderSvc = nugetExeDownloaderSvc; Configuration = configuration; }
public FilesController( IMapper mapper, IHostingEnvironment environment, IHttpContextAccessor httpContextAccessor, IAsyncRepository <FileUpload> fileUploadRepository, ICandidatoService candidatoService, IUploadFileService uploadFileService) { this.mapper = mapper; this.environment = environment; this.httpContextAccessor = httpContextAccessor; this.fileUploadRepository = fileUploadRepository; this.candidatoService = candidatoService; this.uploadFileService = uploadFileService; }
public PackagesController( IPackageService packageSvc, IUploadFileService uploadFileSvc, IUserService userSvc, IMessageService messageService, ISearchService searchSvc, IAutomaticallyCuratePackageCommand autoCuratedPackageCmd) { this.packageSvc = packageSvc; this.uploadFileSvc = uploadFileSvc; this.userSvc = userSvc; this.messageService = messageService; this.searchSvc = searchSvc; this.autoCuratedPackageCmd = autoCuratedPackageCmd; }
/// <summary> /// Initializes a new instance of the <see cref="FilesService"/> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="mediaFileService">The media file service.</param> /// <param name="fileUrlResolver">The file URL resolver.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="fileService">The file service.</param> /// <param name="uploadFileService">The upload file service.</param> public FilesService( IRepository repository, IMediaFileService mediaFileService, IMediaFileUrlResolver fileUrlResolver, IAccessControlService accessControlService, IFileService fileService, IUploadFileService uploadFileService) { this.repository = repository; this.mediaFileService = mediaFileService; this.fileUrlResolver = fileUrlResolver; this.accessControlService = accessControlService; this.fileService = fileService; Upload = uploadFileService; }
public PackagesController( IPackageService packageSvc, IUploadFileService uploadFileSvc, IUserService userSvc, IMessageService messageService, ISearchService searchSvc, IAutomaticallyCuratePackageCommand autoCuratedPackageCmd, INuGetExeDownloaderService nugetExeDownloaderSvc) { _packageSvc = packageSvc; _uploadFileSvc = uploadFileSvc; _userSvc = userSvc; _messageService = messageService; _searchSvc = searchSvc; _autoCuratedPackageCmd = autoCuratedPackageCmd; _nugetExeDownloaderSvc = nugetExeDownloaderSvc; }
/// <summary> /// Initializes a new instance of the <see cref="FilesService"/> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="mediaFileService">The media file service.</param> /// <param name="fileUrlResolver">The file URL resolver.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="fileService">The file service.</param> /// <param name="uploadFileService">The upload file service.</param> public FilesService( IRepository repository, IMediaFileService mediaFileService, IMediaFileUrlResolver fileUrlResolver, IAccessControlService accessControlService, IFileService fileService, IUploadFileService uploadFileService, ICategoryService categoryService) { this.repository = repository; this.mediaFileService = mediaFileService; this.fileUrlResolver = fileUrlResolver; this.accessControlService = accessControlService; this.fileService = fileService; this.categoryService = categoryService; Upload = uploadFileService; }
public DocumentoExpedienteController( IMapper mapper, IHostingEnvironment environment, IHttpContextAccessor httpContextAccessor, ICandidatoService candidatoService, IAsyncRepository <FileUpload> fileUploadRepository, IAsyncRepository <ExpedienteArchivo> expedienteArchivoRepository, IGlobalConfiguration <Configuracion> configuracion, IUploadFileService uploadFileService) { this.mapper = mapper; this.environment = environment; this.httpContextAccessor = httpContextAccessor; this.candidatoService = candidatoService; this.fileUploadRepository = fileUploadRepository; this.expedienteArchivoRepository = expedienteArchivoRepository; this.configuracion = configuracion; this.uploadFileService = uploadFileService; }