//private readonly ITableStorageService _tableStorageService; public GalleryController(IGalleryService galleryService, IBlobStorageService blobStorageService, IImageService imageService) { _galleryService = galleryService; _blobStorageService = blobStorageService; _imageService = imageService; //_tableStorageService = tableStorageService; }
public HomeController(IUnitOfWork uow, ISubjectService subjectService, IProductCategoryService categoryService, IChapterService chapterService, IGalleryService galleryService) { _uow = uow; _subjectService = subjectService; _productCategoryService = categoryService; _galleryService = galleryService; }
public PictureController(IPictureDataProvider _pictureDataProvider, IArticleService _articleService, IGalleryService _galleryService, IThumbnailGeneratorService _thumbnailGenerator) { pictureDataProvider = _pictureDataProvider; articleService = _articleService; this._galleryService = _galleryService; this._thumbnailGenerator = _thumbnailGenerator; }
public ImagesController(IGalleryService galleryService, IImageService imageService, IWebHostEnvironment hostEnvironment, Cloudinary cloudinary) { this.galleryService = galleryService; this.imageService = imageService; this.hostEnvironment = hostEnvironment; this.cloudinary = cloudinary; }
public IndexModel(IComicService comicService, IGalleryService galleryService, IOptions <ApplicationSettings> options) { _comicService = comicService; _galleryService = galleryService; _appOptions = options; }
public ImageController(IImageService service, IGalleryService galleryService, IMapper mapper, IPagingSupport <Image> pagingSupport) { _service = service; _galleryService = galleryService; _mapper = mapper; _pagingSupport = pagingSupport; }
public bool Update(GalleryType mType, IList <Gallery> galleries, out string messages) { messages = ""; BeginTran(); try { IGalleryService gallerySrv = FX.Core.IoC.Resolve <IGalleryService>(); foreach (var ii in mType.Galleries) { gallerySrv.Delete(ii); } foreach (var it in galleries) { it.TypeID = mType.Id; gallerySrv.CreateNew(it); } Save(mType); CommitTran(); return(true); } catch (Exception ex) { RolbackTran(); messages = "Có lỗi xảy ra, vui lòng thực hiện lại."; return(false); } }
public PostController( IPostService postService , IMenuLinkService menuLinkService , IAttributeValueService attributeValueService , IGalleryService galleryService , IImagePlugin imagePlugin , IAttributeService attributeService , ILanguageService languageService , ILocalizedPropertyService localizedPropertyService , IPostGalleryService postGalleryService , IGenericControlService genericControlService , ICacheManager cacheManager) : base(cacheManager) { this._postService = postService; this._menuLinkService = menuLinkService; this._attributeValueService = attributeValueService; this._galleryService = galleryService; this._imagePlugin = imagePlugin; this._attributeService = attributeService; this._languageService = languageService; this._localizedPropertyService = localizedPropertyService; this._postGalleryService = postGalleryService; _genericControlService = genericControlService; _cacheManager = cacheManager; //Clear cache _cacheManager.Clear(); }
public GalleryController( UserManager <WowGuildManagerUser> userManager, IGalleryService galleryService) { this.userManager = userManager; this.galleryService = galleryService; }
public PostController( IPostService postService , IMenuLinkService menuLinkService , IAttributeValueService attributeValueService , IGalleryService galleryService , IImagePlugin imagePlugin , IAttributeService attributeService , ILanguageService languageService , ILocalizedPropertyService localizedPropertyService , IPostGalleryService postGalleryService , IGenericControlService genericControlService , ICacheManager cacheManager , IManufacturerService manufacturerService) : base(cacheManager) { _postService = postService; _menuLinkService = menuLinkService; _attributeValueService = attributeValueService; _galleryService = galleryService; _imagePlugin = imagePlugin; _attributeService = attributeService; _languageService = languageService; _localizedPropertyService = localizedPropertyService; _postGalleryService = postGalleryService; _cacheManager = cacheManager; _manufacturerService = manufacturerService; //Clear cache _cacheManager.RemoveByPattern(CachePostKey); }
public BaseAdminModelFactory( ICustomerActivityService customerActivityService, IStateProvinceService stateProvinceService, IStaticCacheManager cacheManager, IStoreService storeService, ITopicTemplateService topicTemplateService, IEmailAccountService emailAccountService, ICategoryService categoryService, ICategoryTemplateService categoryTemplateService, ICustomerService customerService, INewsPaperServices newsPaperServices, ISliderService sliderService, IGalleryService galleryService, IVideoService videoService) { this._customerActivityService = customerActivityService; this._stateProvinceService = stateProvinceService; this._cacheManager = cacheManager; this._storeService = storeService; this._topicTemplateService = topicTemplateService; _emailAccountService = emailAccountService; _categoryService = categoryService; _categoryTemplateService = categoryTemplateService; _customerService = customerService; _newsPaperServices = newsPaperServices; _sliderService = sliderService; _galleryService = galleryService; _videoService = videoService; }
public PostController( IPostService postService , IMenuLinkService menuLinkService , IAttributeValueService attributeValueService , IGalleryService galleryService , IImageService imageService , IAttributeService attributeService , ILanguageService languageService , ILocalizedPropertyService localizedPropertyService , IPostGalleryService postGalleryService , IGenericControlService genericControlService , ICacheManager cacheManager , IManufacturerService manufacturerService , IOrderItemService orderItemService , ISettingService settingService) : base(cacheManager) { _postService = postService; _menuLinkService = menuLinkService; _attributeValueService = attributeValueService; _galleryService = galleryService; _imageService = imageService; _attributeService = attributeService; _languageService = languageService; _localizedPropertyService = localizedPropertyService; _postGalleryService = postGalleryService; _manufacturerService = manufacturerService; _orderItemService = orderItemService; _settingService = settingService; //Clear cache cacheManager.RemoveByPattern(CachePostKey); }
public ReadController(IComicService comicService, IGalleryService galleryService, IOptions <ApplicationSettings> options) { _comicService = comicService; _galleryService = galleryService; _appOptions = options; }
public GalleryCategoryViewModelMapper(IUmbracoContextProvider umbracoConextProvider, IGalleryService gelleryService, IMapperProvider mapperProvieder, IContentMapper <Gallery> contentMapper) : base(umbracoConextProvider) { _galleryService = gelleryService; _mapperProvieder = mapperProvieder; _contentMapper = contentMapper; }
public GalleryPublicInfoController(IGalleryService galleryService, IPictureService pictureService, GallerySettings gallerySettings, ILocalizationService localizationService) { _galleryService = galleryService; _pictureService = pictureService; _gallerySettings = gallerySettings; _localizationService = localizationService; }
public CategoryController(IUnitOfWork unitOfWork, ICategoryService categoryService, IProductService productService, IGalleryService galleryService) { this._unitOfWork = unitOfWork; this._categoryService = categoryService; this._productService = productService; this._galleryService = galleryService; }
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 GalleryController( IArticleService articleService, IGalleryService galleryService, IHostingEnvironment hostingEnvironment) { this.articleService = articleService; this.galleryService = galleryService; this.hostingEnvironment = hostingEnvironment; }
public AccountController(UserManager <IdentityUser, Guid> userManager, IPostService postService, IGalleryService galleryService, IProvinceService provinceService, IMenuLinkService menuLinkService, IDistrictService districtService, IImagePlugin imagePlugin) : base(userManager) { this._postService = postService; this._galleryService = galleryService; this._provinceService = provinceService; this._menuLinkService = menuLinkService; this._districtService = districtService; this._imagePlugin = imagePlugin; }
public AdministratorController(IBlogService blogService, IUserService userService, INewsService newsService, IGalleryService galleryService, IQuestionService questionService, ISettingsService settingsService) { this._blogService = blogService; this._userService = userService; this._newsService = newsService; this._galleryService = galleryService; this._questionService = questionService; this._settingsService = settingsService; }
public CatalogController(IProductService service, ICategoryService category, IBrandService brand, IPropertyService property, IGalleryService gallery) { ProductService = service; categoryService = category; brandService = brand; propertyService = property; GalleryService = gallery; }
public async Task WhenICallGalleryService_ToGetAll_ICallCorrectMethods() { _albumService.Setup(x => x.GetAlbums()).ReturnsAsync(MockAlbums()); _photoService.Setup(x => x.GetPhotos()).ReturnsAsync(MockPhotos()); _galleryService = new GalleryService(_albumService.Object, _photoService.Object); await _galleryService.GetGallery(); _albumService.Verify(x => x.GetAlbums(), Times.Once); _photoService.Verify(x => x.GetPhotos(), Times.Once); }
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 HomeController(IConfiguration configuration, IBlogService blogService, INewsService newsService, IGalleryService galleryService, IQuestionService questionService, ISettingsService settingsService, IMemoryCache memoryCache) { this._configuration = configuration; this._blogService = blogService; this._newsService = newsService; this._galleryService = galleryService; this._questionService = questionService; this._settingsService = settingsService; this._memoryCache = memoryCache; }
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 async Task WhenICallGalleryService_WithInvalidAlbumIds_IGetErrors() { _albumService.Setup(x => x.GetUserAlbums(It.IsAny <int>())).ReturnsAsync(MockAlbums()); _photoService.Setup(x => x.GetAlbumPhotos(It.IsAny <int>())).ThrowsAsync(new DataValidationException("test")); _galleryService = new GalleryService(_albumService.Object, _photoService.Object); GalleryUserDto gallery = await _galleryService.GetUsersGallery(1); Assert.AreEqual(3, gallery.Albums.Count); Assert.AreEqual(3, gallery.Errors.Count); }
public GalleryController( IGalleryService services, IGamingHallService gamingHallService, Cloudinary cloudinary, IUsersHallsService usersHallsService) { this.services = services; this.gamingHallService = gamingHallService; this.cloudinary = cloudinary; this.usersHallsService = usersHallsService; }
public PostController( IPostService postService , IMenuLinkService menuLinkService , IGalleryService galleryService , IWorkContext workContext) { this._postService = postService; this._menuLinkService = menuLinkService; this._galleryService = galleryService; this._workContext = workContext; }
public BlogService( IDeletableEntityRepository <Post> postRepository, IDeletableEntityRepository <Comment> commentRepository, IDeletableEntityRepository <ApplicationUser> userRepository, IGalleryService galleryService) { this._postRepository = postRepository; this._commentRepository = commentRepository; this._userRepository = userRepository; this._galleryService = galleryService; }
public GalleryApiController( ILog log, IServices services, IRetrievers retrievers, IRepositories repositories) : base(log) { this.galleryService = services.GalleryService; this.galleryRetriever = retrievers.GalleryRetriever; this.galleryRepository = repositories.GalleryRepository; }
public async Task WhenICallGalleryService_AndMapToPhotosAlbums_IGetCorrectPhotos() { _albumService.Setup(x => x.GetAlbums()).ReturnsAsync(MockAlbums()); _photoService.Setup(x => x.GetPhotos()).ReturnsAsync(MockPhotos()); _galleryService = new GalleryService(_albumService.Object, _photoService.Object); GalleryDto gallery = await _galleryService.GetGallery(); Assert.AreEqual(1, gallery.Albums.Where(x => x.Id == 1).Select(p => p.Photos.Count).First()); Assert.AreEqual(2, gallery.Albums.Where(x => x.Id == 2).Select(p => p.Photos.Count).First()); Assert.AreEqual(1, gallery.Albums.Where(x => x.Id == 3).Select(p => p.Photos.Count).First()); }
public CategoryController(IUnitOfWork unitOfWork, ICategoryService categoryService, IProductService productService, IUserService userService, ISettingService settingService, IGalleryService galleryService, IGalleryDetailService galleryDetailService) { this._unitOfWork = unitOfWork; this._categoryService = categoryService; this._productService = productService; this._userService = userService; this._settingService = settingService; this._galleryService = galleryService; this._galleryDetailService = galleryDetailService; }
public ScanService( IOptions <ApplicationSettings> options, IHubContext <ScanHub> hubContext, IGalleryService galleryService, IComicService comicService ) { _options = options; _hubContext = hubContext; _galleryService = galleryService; _comicService = comicService; }
public HomeController(IBannerService bannerService, IProductService productService, IProServiceService proServiceService, INewsService newsService, IFaqService faqService, IGalleryService galleryService, ISettingService settingService, IContactService contactService, IPageService pageService, IUnitOfWork uow) : base(settingService, contactService, pageService, proServiceService, uow) { _bannerService = bannerService; _productService = productService; _proServiceService = proServiceService; _newsService = newsService; _faqService = faqService; _galleryService = galleryService; _pageService = pageService; _contactService = contactService; }
public MainFormPresenter(ILogger logger, IMainFormView mainFormView, IGalleryService galleryService, IEnumerable <Rectangle> allScreensBoundaries) { this.logger = logger; this.mainFormView = mainFormView; Rand = new Random(); BoundingRectangle = FindBoundingBox(allScreensBoundaries); this.galleryService = galleryService; animator = new AnimationHandler(); }
public SolutionController(IUnitOfWork unitOfWork, ISolutionService solutionService, IProductService productService, IUserService userService, ISettingService settingService, IGalleryService galleryService, IGalleryDetailService galleryDetailService, ISolutionProductService solutionProductService) { this._unitOfWork = unitOfWork; this._solutionService = solutionService; this._productService = productService; this._userService = userService; this._settingService = settingService; this._galleryService = galleryService; this._galleryDetailService = galleryDetailService; this._solutionProductService = solutionProductService; }
public GalleryItemController(IUnitOfWork uow, IGalleryItemService galleryItemService, IGalleryService galleryService) { _uow = uow; _galleryItemService = galleryItemService; _galleryService = galleryService; }
public GalleryController(ISettingService settingService, IContactService contactService, IPageService pageService, IGalleryAlbumService galleryAlbumService, IGalleryService galleryService, IProServiceService proServiceService, IUnitOfWork uow) : base(settingService, contactService, pageService, proServiceService, uow) { _galleryAlbumService = galleryAlbumService; _galleryService = galleryService; }
public GalleryController(IGalleryService galleryService) { this._galleryService = galleryService; }
public GalleryController(IGalleryService service) { Service = service; }
public GalleryController() { _galleryService = new GalleryService(); }