//private readonly ITableStorageService _tableStorageService;

        public GalleryController(IGalleryService galleryService, IBlobStorageService blobStorageService, IImageService imageService)
        {
            _galleryService     = galleryService;
            _blobStorageService = blobStorageService;
            _imageService       = imageService;
            //_tableStorageService = tableStorageService;
        }
예제 #2
0
 public HomeController(IUnitOfWork uow, ISubjectService subjectService, IProductCategoryService categoryService, IChapterService chapterService, IGalleryService galleryService)
 {
     _uow = uow;
     _subjectService = subjectService;
     _productCategoryService = categoryService;
     _galleryService = galleryService;
 }
예제 #3
0
 public PictureController(IPictureDataProvider _pictureDataProvider, IArticleService _articleService, IGalleryService _galleryService, IThumbnailGeneratorService _thumbnailGenerator)
 {
     pictureDataProvider = _pictureDataProvider;
     articleService = _articleService;
     this._galleryService = _galleryService;
     this._thumbnailGenerator = _thumbnailGenerator;
 }
예제 #4
0
 public ImagesController(IGalleryService galleryService, IImageService imageService, IWebHostEnvironment hostEnvironment, Cloudinary cloudinary)
 {
     this.galleryService  = galleryService;
     this.imageService    = imageService;
     this.hostEnvironment = hostEnvironment;
     this.cloudinary      = cloudinary;
 }
예제 #5
0
 public IndexModel(IComicService comicService, IGalleryService galleryService,
                   IOptions <ApplicationSettings> options)
 {
     _comicService   = comicService;
     _galleryService = galleryService;
     _appOptions     = options;
 }
예제 #6
0
 public ImageController(IImageService service, IGalleryService galleryService, IMapper mapper, IPagingSupport <Image> pagingSupport)
 {
     _service        = service;
     _galleryService = galleryService;
     _mapper         = mapper;
     _pagingSupport  = pagingSupport;
 }
예제 #7
0
 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);
     }
 }
예제 #8
0
        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;
 }
예제 #10
0
        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);
        }
예제 #11
0
        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;
        }
예제 #12
0
        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);
        }
예제 #13
0
 public ReadController(IComicService comicService, IGalleryService galleryService,
                       IOptions <ApplicationSettings> options)
 {
     _comicService   = comicService;
     _galleryService = galleryService;
     _appOptions     = options;
 }
예제 #14
0
 public GalleryCategoryViewModelMapper(IUmbracoContextProvider umbracoConextProvider, IGalleryService gelleryService,
                                       IMapperProvider mapperProvieder, IContentMapper <Gallery> contentMapper)
     : base(umbracoConextProvider)
 {
     _galleryService  = gelleryService;
     _mapperProvieder = mapperProvieder;
     _contentMapper   = contentMapper;
 }
예제 #15
0
 public GalleryPublicInfoController(IGalleryService galleryService, IPictureService pictureService,
                                    GallerySettings gallerySettings, ILocalizationService localizationService)
 {
     _galleryService      = galleryService;
     _pictureService      = pictureService;
     _gallerySettings     = gallerySettings;
     _localizationService = localizationService;
 }
예제 #16
0
 public CategoryController(IUnitOfWork unitOfWork, ICategoryService categoryService, IProductService productService,
     IGalleryService galleryService)
 {
     this._unitOfWork = unitOfWork;
     this._categoryService = categoryService;
     this._productService = productService;
     this._galleryService = galleryService;
 }
예제 #17
0
 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;
 }
예제 #19
0
 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;
 }
예제 #21
0
        public CatalogController(IProductService service, ICategoryService category, IBrandService brand,
                                 IPropertyService property, IGalleryService gallery)

        {
            ProductService  = service;
            categoryService = category;
            brandService    = brand;
            propertyService = property;
            GalleryService  = gallery;
        }
예제 #22
0
        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);
        }
예제 #23
0
 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;
 }
예제 #26
0
        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;
 }
예제 #28
0
 public PostController(
     IPostService postService
     , IMenuLinkService menuLinkService
     , IGalleryService galleryService
     , IWorkContext workContext)
 {
     this._postService     = postService;
     this._menuLinkService = menuLinkService;
     this._galleryService  = galleryService;
     this._workContext     = workContext;
 }
예제 #29
0
 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;
 }
예제 #30
0
 public GalleryApiController(
     ILog log,
     IServices services,
     IRetrievers retrievers,
     IRepositories repositories)
     : base(log)
 {
     this.galleryService    = services.GalleryService;
     this.galleryRetriever  = retrievers.GalleryRetriever;
     this.galleryRepository = repositories.GalleryRepository;
 }
예제 #31
0
        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());
        }
예제 #32
0
 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;
 }
예제 #33
0
 public ScanService(
     IOptions <ApplicationSettings> options,
     IHubContext <ScanHub> hubContext,
     IGalleryService galleryService,
     IComicService comicService
     )
 {
     _options        = options;
     _hubContext     = hubContext;
     _galleryService = galleryService;
     _comicService   = comicService;
 }
예제 #34
0
 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;
 }
예제 #35
0
        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();
        }
예제 #36
0
 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;
 }
예제 #38
0
 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;
 }
예제 #41
0
 public GalleryController()
 {
     _galleryService = new GalleryService();
 }