コード例 #1
0
 public BannerController(IBannerService bannerService, IHostingEnvironment hostingEnvironment, IBannerDetailService bannerDetailService, IBatchInformationService batchInformationService)
 {
     _bannerService           = bannerService;
     _hostingEnvironment      = hostingEnvironment;
     _bannerDetailService     = bannerDetailService;
     _batchInformationService = batchInformationService;
 }
コード例 #2
0
 public CommonController(INavigationService navigationService, ISlideService slideService, IBannerService bannerService, ISettingService settingService)
 {
     this._navigationService = navigationService;
     this._slideService = slideService;
     this._bannerService = bannerService;
     this._settingService = settingService;
 }
コード例 #3
0
        /// <summary>
        /// Creates a new instance with the provided api configuration
        /// </summary>
        /// <param name="apiConfiguration">The API configuration</param>
        public TheTVDBManager(IApiConfiguration apiConfiguration)
        {
            if (apiConfiguration == null)
            {
                throw new ArgumentNullException(nameof(apiConfiguration));
            }
            if (string.IsNullOrWhiteSpace(apiConfiguration.BaseUrl))
            {
                throw new ArgumentOutOfRangeException(nameof(apiConfiguration), "Base url must be set");
            }

            // Proxy Services
            _seriesService  = new SeriesServiceProxy(apiConfiguration);
            _episodeService = new EpisodeServiceProxy(apiConfiguration);
            _updateService  = new UpdateServiceProxy(apiConfiguration);
            _bannerService  = new BannerServiceProxy(apiConfiguration);

            // Initialize parse services
            var actorParseService  = new ActorParseService();
            var bannerParseService = new BannerParseService();

            _episodeParseService = new EpisodeParseService();
            _seriesParseService  = new SeriesParseService(actorParseService, bannerParseService, _episodeParseService);
            _updateParseService  = new UpdateParseService();
        }
コード例 #4
0
 public CategoryController(ICategoryService categoryService, IProductService productService, IBannerService bannerService, ICityService cityService)
 {
     _categoryService = categoryService;
     _productService  = productService;
     _bannerService   = bannerService;
     _cityService     = cityService;
 }
コード例 #5
0
 public BannerAppService(ILogger <BannerAppService> logger, IBannerService bannerService, ICommonService commonService, ICurrentContext context)
 {
     _logger        = logger;
     _bannerService = bannerService;
     _commonService = commonService;
     _context       = context;
 }
コード例 #6
0
 public CustomerActionViewModelService(ICustomerService customerService,
                                       ICustomerTagService customerTagService,
                                       ILocalizationService localizationService,
                                       ICustomerActivityService customerActivityService,
                                       ICategoryService categoryService,
                                       IManufacturerService manufacturerService,
                                       IStoreService storeService,
                                       IVendorService vendorService,
                                       ICustomerActionService customerActionService,
                                       IProductAttributeService productAttributeService,
                                       IBannerService bannerService,
                                       IInteractiveFormService interactiveFormService,
                                       IMessageTemplateService messageTemplateService,
                                       IDateTimeHelper dateTimeHelper,
                                       IProductService productService)
 {
     _customerService         = customerService;
     _customerTagService      = customerTagService;
     _localizationService     = localizationService;
     _customerActivityService = customerActivityService;
     _categoryService         = categoryService;
     _manufacturerService     = manufacturerService;
     _storeService            = storeService;
     _vendorService           = vendorService;
     _customerActionService   = customerActionService;
     _bannerService           = bannerService;
     _interactiveFormService  = interactiveFormService;
     _messageTemplateService  = messageTemplateService;
     _dateTimeHelper          = dateTimeHelper;
     _productService          = productService;
 }
コード例 #7
0
 public MainController(IBannerService bannerService, IWhatsNewService whatsnewService, IStructuredService structuredService, IGearedService gearedService)
 {
     this.bannerService     = bannerService;
     this.whatsnewService   = whatsnewService;
     this.structuredService = structuredService;
     this.gearedService     = gearedService;
 }
コード例 #8
0
 public InformationController(IInformationService informationService, IBannerService bannerService, ICommonService commonService)
 {
     _informationService = informationService;
     _bannerService      = bannerService;
     _commonService      = commonService;
     _siteSettings       = _commonService.GetSiteSettings();
 }
コード例 #9
0
 public CustomerActionViewModelService(ICustomerService customerService,
                                       IGroupService groupService,
                                       ICustomerTagService customerTagService,
                                       ITranslationService translationService,
                                       ICustomerActivityService customerActivityService,
                                       IStoreService storeService,
                                       IVendorService vendorService,
                                       ICustomerActionService customerActionService,
                                       IBannerService bannerService,
                                       IInteractiveFormService interactiveFormService,
                                       IMessageTemplateService messageTemplateService,
                                       IDateTimeService dateTimeService,
                                       IProductService productService)
 {
     _customerService         = customerService;
     _groupService            = groupService;
     _customerTagService      = customerTagService;
     _translationService      = translationService;
     _customerActivityService = customerActivityService;
     _storeService            = storeService;
     _vendorService           = vendorService;
     _customerActionService   = customerActionService;
     _bannerService           = bannerService;
     _interactiveFormService  = interactiveFormService;
     _messageTemplateService  = messageTemplateService;
     _dateTimeService         = dateTimeService;
     _productService          = productService;
 }
コード例 #10
0
 public MenuAppService(ILogger <MenuAppService> logger, IMenuService menuService, ILanguageService languageService, IBannerService bannerService)
 {
     _logger          = logger;
     _menuService     = menuService;
     _languageService = languageService;
     _bannerService   = bannerService;
 }
コード例 #11
0
        public BannerServiceTests()
        {
            unit          = new UnitOfWork(MongoDatabaseProvider.MongoDatabase);
            bannerService = new BannerService(unit);

            //To have clean db before each test
            unit.BannerRepository.RemoveAll();
        }
コード例 #12
0
ファイル: BannerController.cs プロジェクト: turkgulsun/Cms
 public BannerController(IBannerService bannerService, IBannerInfoService bannerInfoService, GeneralFunctions generalFunctions, IListInfoService listInfoService, IListsService listsService)
 {
     _bannerService     = bannerService;
     _bannerInfoService = bannerInfoService;
     _generalFunctions  = generalFunctions;
     _listsService      = listsService;
     _listInfoService   = listInfoService;
 }
コード例 #13
0
 public HomeController(IBannerService bannerService,
                       IWorkContext workContext,
                       IPictureService pictureService)
 {
     this._bannerService  = bannerService;
     this._workContext    = workContext;
     this._pictureService = pictureService;
 }
コード例 #14
0
 public TasarimController(IBannerService bannerService,
                          IMapper mapper, IWebHostEnvironment iweb, IKategoriService kategoriService)
 {
     _mapper          = mapper;
     _bannerService   = bannerService;
     _iweb            = iweb;
     _kategoriService = kategoriService;
 }
コード例 #15
0
 public CheckoutController(Cart cart, IBannerService bannerService, ICommonService commonService, ICheckoutService checkoutService)
 {
     _cart            = cart;
     _bannerService   = bannerService;
     _commonService   = commonService;
     _checkoutService = checkoutService;
     _siteSettings    = _commonService.GetSiteSettings();
 }
コード例 #16
0
 public BannerControllerTests()
 {
     unit             = new UnitOfWork(MongoDatabaseProvider.MongoDatabase);
     bannerService    = new BannerService(unit);
     bannerController = new BannerController(unit, bannerService);
     bannerController.Configuration = new HttpConfiguration();
     unit.BannerRepository.RemoveAll();
 }
コード例 #17
0
 public BannerController(IBannerService bannerService,
                         ITranslationService translationService,
                         ILanguageService languageService)
 {
     _bannerService      = bannerService;
     _translationService = translationService;
     _languageService    = languageService;
 }
コード例 #18
0
 public BannerController(IBannerService bannerService, IBannerMappingService bannerMappingService, UserFactory userFactory)
 {
     this._bannerService        = bannerService;
     this._bannerMappingService = bannerMappingService;
     //this.userId = User.i
     this._userFactory = userFactory;
     this._userId      = _userFactory.GetUserId(User.Identity.Name);
 }
コード例 #19
0
 public CartController(Cart cart, IBannerService bannerService, ICommonService commonService, IProductService productService)
 {
     _cart           = cart;
     _bannerService  = bannerService;
     _commonService  = commonService;
     _siteSettings   = _commonService.GetSiteSettings();
     _productService = productService;
 }
コード例 #20
0
 public BannerController(IBannerService bannerService, IBannerMappingService bannerMappingService, UserFactory userFactory)
 {
     this._bannerService = bannerService;
     this._bannerMappingService = bannerMappingService;
     //this.userId = User.i
     this._userFactory = userFactory;
     this._userId = _userFactory.GetUserId(User.Identity.Name);
 }
コード例 #21
0
 public TemplateConfigAppService(ILogger <TemplateConfigAppService> logger, ICommonService commonService, ICurrentContext context, ITemplateService templateService, IBannerService bannerService)
 {
     _logger          = logger;
     _templateService = templateService;
     _bannerService   = bannerService;
     _commonService   = commonService;
     _context         = context;
 }
コード例 #22
0
 public UserService(AdvertisementContext context, IConfiguration configuration
                    , IDividingService dividingService, IBannerService bannerService)
 {
     _configuration           = configuration;
     _context                 = context;
     _dividingDividingService = dividingService;
     _bannerService           = bannerService;
 }
コード例 #23
0
 public BannerController(IBannerService bannerService, IMapper mapper, IHostingEnvironment env,
                         IProductCategoryService productCategoryService)
 {
     _bannerService          = bannerService;
     _productCategoryService = productCategoryService;
     _env    = env;
     _mapper = mapper;
 }
コード例 #24
0
 public BannerController(IBannerService bannerService,
                         ILocalizationService localizationService,
                         ILanguageService languageService)
 {
     this._bannerService       = bannerService;
     this._localizationService = localizationService;
     this._languageService     = languageService;
 }
コード例 #25
0
        public CommonController(ICategoryService categoryService, IProductService productService,
                                IManufacturerService manufacturerService, ITopicService topicService,
                                ILanguageService languageService,
                                ICurrencyService currencyService, ILocalizationService localizationService,
                                IWorkContext workContext,
                                IQueuedEmailService queuedEmailService, IEmailAccountService emailAccountService,
                                ISitemapGenerator sitemapGenerator, IThemeContext themeContext,
                                IThemeProvider themeProvider, IForumService forumService,
                                IGenericAttributeService genericAttributeService, IWebHelper webHelper,
                                IPermissionService permissionService, IMobileDeviceHelper mobileDeviceHelper,
                                HttpContextBase httpContext, ICacheManager cacheManager,
                                ICustomerActivityService customerActivityService, CustomerSettings customerSettings,
                                TaxSettings taxSettings, CatalogSettings catalogSettings,
                                StoreInformationSettings storeInformationSettings, EmailAccountSettings emailAccountSettings,
                                CommonSettings commonSettings, BlogSettings blogSettings,
                                NewsSettings newsSettings, ForumSettings forumSettings,
                                LocalizationSettings localizationSettings, CaptchaSettings captchaSettings,
                                IBannerService bannerService,
                                IRecentlyViewedProductsService recentlyViewedProductsService,
                                IPictureService pictureService)
        {
            this._categoryService         = categoryService;
            this._productService          = productService;
            this._manufacturerService     = manufacturerService;
            this._topicService            = topicService;
            this._languageService         = languageService;
            this._currencyService         = currencyService;
            this._localizationService     = localizationService;
            this._workContext             = workContext;
            this._queuedEmailService      = queuedEmailService;
            this._emailAccountService     = emailAccountService;
            this._sitemapGenerator        = sitemapGenerator;
            this._themeContext            = themeContext;
            this._themeProvider           = themeProvider;
            this._forumservice            = forumService;
            this._genericAttributeService = genericAttributeService;
            this._webHelper               = webHelper;
            this._permissionService       = permissionService;
            this._mobileDeviceHelper      = mobileDeviceHelper;
            this._httpContext             = httpContext;
            this._cacheManager            = cacheManager;
            this._customerActivityService = customerActivityService;
            this._bannerService           = bannerService;
            this._pictureService          = pictureService;

            this._customerSettings              = customerSettings;
            this._taxSettings                   = taxSettings;
            this._catalogSettings               = catalogSettings;
            this._storeInformationSettings      = storeInformationSettings;
            this._emailAccountSettings          = emailAccountSettings;
            this._commonSettings                = commonSettings;
            this._blogSettings                  = blogSettings;
            this._newsSettings                  = newsSettings;
            this._forumSettings                 = forumSettings;
            this._localizationSettings          = localizationSettings;
            this._captchaSettings               = captchaSettings;
            this._recentlyViewedProductsService = recentlyViewedProductsService;
        }
コード例 #26
0
ファイル: UnitOfWorkPerson.cs プロジェクト: cnicho14/wvup-tcs
 /// <summary>UnitOfWorkPerson Constructor</summary>
 public UnitOfWorkPerson(IPersonRepo personRepo, IScheduleRepo scheduleRepo, IClassRepo classRepo, ISemesterRepo semesterRepo, IDepartmentRepo departmentRepo, IBannerService bannerApi)
 {
     this.personRepo     = personRepo;
     this.scheduleRepo   = scheduleRepo;
     this.classRepo      = classRepo;
     this.semesterRepo   = semesterRepo;
     this.departmentRepo = departmentRepo;
     this.bannerApi      = bannerApi;
 }
コード例 #27
0
 public BannerController(IBannerService bannerService, ICreateBanner createBanner, IReadBanner readBanner, IEditBanner editBanner, IDeleteBanner deleteBanner, BannerModel modelBanner)
 {
     this.bannerInt       = bannerService;
     this.CreateBannerInt = createBanner;
     this.readBannerInt   = readBanner;
     this.EditBannerInt   = editBanner;
     this.deleteBannerInt = deleteBanner;
     this.bannerModelc    = modelBanner;
 }
コード例 #28
0
 public BannerController(
     IBannerService BannerService,
     IHostingEnvironment environment,
     LogService logService)
 {
     _BannerService = BannerService;
     _logService    = logService;
     _environment   = environment;
 }
コード例 #29
0
 public BannersController(ILocalAuthenticationService authenticationService,
                          IUserService userService,
                          IBannerService bannerService,
                          IExternalAuthenticationService externalAuthenticationService,
                          IFormsAuthentication formsAuthentication,
                          IActionArguments actionArguments)
 {
     _bannerService = bannerService;
 }
コード例 #30
0
 public ProductController(IConfiguration configuration, IProductService productService, ICommonService commonService, IBannerService bannerService)
 {
     _configuration  = configuration;
     _productService = productService;
     _commonService  = commonService;
     _bannerService  = bannerService;
     _pageSize       = _configuration.GetValue <int>("PageSize");
     _siteSettings   = _commonService.GetSiteSettings();
 }
コード例 #31
0
 public HomeController(IUserService userService,
                       IRoleService roleService,
                       ICookieService cookieService,
                       IBannerService bannerService)
 {
     this.userService   = userService ?? throw new ArgumentNullException(nameof(userService));
     this.roleService   = roleService ?? throw new ArgumentNullException(nameof(roleService));
     this.cookieService = cookieService ?? throw new ArgumentNullException(nameof(cookieService));
     this.bannerService = bannerService ?? throw new ArgumentNullException(nameof(bannerService));
 }
コード例 #32
0
 public BannerController(IViewModelMapper <IReadOnlyCollection <BannerDTO>, AdminViewModel> bannerViewModelMapper,
                         IViewModelMapper <Banner, DetailsViewModels> detailViewModelMapper,
                         IBannerService bannerService,
                         IHostingEnvironment hostingEnv)
 {
     this.bannerViewModelMapper = bannerViewModelMapper ?? throw new ArgumentNullException(nameof(bannerViewModelMapper));
     this.detailViewModelMapper = detailViewModelMapper ?? throw new ArgumentNullException(nameof(detailViewModelMapper));
     this.bannerService         = bannerService ?? throw new ArgumentNullException(nameof(bannerService));
     this.hostingEnv            = hostingEnv ?? throw new ArgumentNullException(nameof(hostingEnv));
 }
コード例 #33
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;
 }
コード例 #34
0
ファイル: HomeController.cs プロジェクト: thuyhk/ThuanThienVN
 public HomeController(IUnitOfWork unitOfWork, ICategoryService categoryService,
     IBannerService bannerService, IEmailQueueService emailQueueService,
     IEmailTemplateService emailTemplateService, IContentService contentService,
     IProductService productService, ISolutionService solutionService)
 {
     this._unitOfWork = unitOfWork;
     this._categoryService = categoryService;
     this._bannerService = bannerService;
     this._emailQueueService = emailQueueService;
     this._emailTemplateService = emailTemplateService;
     this._contactService = contentService;
     this._productService = productService;
     this._solutionService = solutionService;
 }
コード例 #35
0
ファイル: HomeController.cs プロジェクト: huuphuu/pendesignvn
        public HomeController(IConfigService configService, IBannerService bannerService,
            IBannerMappingService bannerMappingService, IGroupControlService groupControlService, IControlService controlService,
            IProjectService projectService, INewsService newsService, INewsCategoryService newsCategoryService,
            IOtherPageSEOService otherPageSeoService)
        {
            this._configService = configService;
            this._bannerService = bannerService;
            this._bannerMappingService = bannerMappingService;
            this._groupControlService = groupControlService;
            this._controlService = controlService;
            this.configModel = _configService.GetAll().SingleOrDefault();
            this._projectService = projectService.GetAll();
            this._newsService = newsService;
            this._newsCategoryService = newsCategoryService;
            this._otherPageSeoService = otherPageSeoService;

            this.LanguageId = int.Parse(Cookies.ReadCookie("PenDesign:Language", "129"));
        }
コード例 #36
0
ファイル: BannerController.cs プロジェクト: atawat/protoss
 public BannerController(IBannerService BannerService)
 {
     _BannerService = BannerService;
 }
コード例 #37
0
 public ManageBannerHandler(IUnitOfWork pUow, IBannerService pServ)
 {
     this.iUoW = pUow;
     this.iServ = pServ;
 }
コード例 #38
0
 public BannerController(IBannerService banners)
 {
     this.banners = banners;
 }
コード例 #39
0
 public void TestCleanup()
 {
     _context.Dispose();
     _uow.Dispose();
     _bannerService = null;
 }
 public HomeController(IConfigService configService, IBannerService bannerService, IBannerMappingService bannerMappingService)
 {
     this._configService = configService;
     this._bannerService = bannerService;
     this._bannerMappingService = bannerMappingService;
 }
コード例 #41
0
 public BannerManagementController(IBannerService BannerService)
 {
     this._bannerService = BannerService;
 }
コード例 #42
0
 public BannerController(IBannerService bannerService, IUnitOfWork uow)
     : base(uow)
 {
     _bannerService = bannerService;
 }
コード例 #43
0
 public BannerController(IUnitOfWork unitOfWork, IBannerService bannerService)
 {
     this._unitOfWork = unitOfWork;
     this._bannerService = bannerService;
 }
コード例 #44
0
 public void TestInitialize()
 {
     _context = new PortalProjectContext();
     _uow = new UnitOfWork(_context);
     _bannerService = new BannerService(_uow);
 }