public Controller(IExcelPhotoURLGetterService excelPhotoURLGetter, IFileValidator fileValidator,
                   IPathCreator pathCreator, IImageDownloaderService imageDownloaderService, IResizeImageService resizeImageService,
                   IMongoDBService mongoDBService)
 {
     this.excelPhotoURLGetter    = excelPhotoURLGetter;
     this.fileValidator          = fileValidator;
     this.pathCreator            = pathCreator;
     this.imageDownloaderService = imageDownloaderService;
     this.resizeImageService     = resizeImageService;
     this.mongoDBService         = mongoDBService;
 }
Example #2
0
 public ProductController(DataDbContext _data, IResizeImageService _serviceImage)
 {
     data         = _data;
     serviceImage = _serviceImage;
 }
 public PhotoService(IApplicationContext applicationContext, IResizeImageService resizeImageService)
 {
     _applicationContext = applicationContext;
     _resizeImageService = resizeImageService;
 }
Example #4
0
 public PhotoService(IGenericRepository <Photo> genericRepository, IResizeImageService resizeImageService, IGenericRepository <Advert> advertRepo)
 {
     _genericRepository  = genericRepository;
     _resizeImageService = resizeImageService;
     _advertRepo         = advertRepo;
 }
 public PersistImageCommand(IFileStore fileStore, IResizeImageService resizeImageService)
 {
     this.fileStore = fileStore;
     this.resizeImageService = resizeImageService;
 }
 public PersistImageCommand(IFileStore fileStore, IResizeImageService resizeImageService, IPersistImageValidatorResolver validatorResolver)
 {
     this.fileStore = fileStore;
     this.resizeImageService = resizeImageService;
     this.validatorResolver = validatorResolver;
 }