public BannerController(IBannerService bannerService, IHostingEnvironment hostingEnvironment, IBannerDetailService bannerDetailService, IBatchInformationService batchInformationService)
 {
     _bannerService           = bannerService;
     _hostingEnvironment      = hostingEnvironment;
     _bannerDetailService     = bannerDetailService;
     _batchInformationService = batchInformationService;
 }
 public CommonController(INavigationService navigationService, ISlideService slideService, IBannerService bannerService, ISettingService settingService)
 {
     this._navigationService = navigationService;
     this._slideService = slideService;
     this._bannerService = bannerService;
     this._settingService = settingService;
 }
Beispiel #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();
        }
 public CategoryController(ICategoryService categoryService, IProductService productService, IBannerService bannerService, ICityService cityService)
 {
     _categoryService = categoryService;
     _productService  = productService;
     _bannerService   = bannerService;
     _cityService     = cityService;
 }
 public BannerAppService(ILogger <BannerAppService> logger, IBannerService bannerService, ICommonService commonService, ICurrentContext context)
 {
     _logger        = logger;
     _bannerService = bannerService;
     _commonService = commonService;
     _context       = context;
 }
 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;
 }
 public MainController(IBannerService bannerService, IWhatsNewService whatsnewService, IStructuredService structuredService, IGearedService gearedService)
 {
     this.bannerService     = bannerService;
     this.whatsnewService   = whatsnewService;
     this.structuredService = structuredService;
     this.gearedService     = gearedService;
 }
 public InformationController(IInformationService informationService, IBannerService bannerService, ICommonService commonService)
 {
     _informationService = informationService;
     _bannerService      = bannerService;
     _commonService      = commonService;
     _siteSettings       = _commonService.GetSiteSettings();
 }
 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;
 }
 public MenuAppService(ILogger <MenuAppService> logger, IMenuService menuService, ILanguageService languageService, IBannerService bannerService)
 {
     _logger          = logger;
     _menuService     = menuService;
     _languageService = languageService;
     _bannerService   = bannerService;
 }
Beispiel #11
0
        public BannerServiceTests()
        {
            unit          = new UnitOfWork(MongoDatabaseProvider.MongoDatabase);
            bannerService = new BannerService(unit);

            //To have clean db before each test
            unit.BannerRepository.RemoveAll();
        }
Beispiel #12
0
 public BannerController(IBannerService bannerService, IBannerInfoService bannerInfoService, GeneralFunctions generalFunctions, IListInfoService listInfoService, IListsService listsService)
 {
     _bannerService     = bannerService;
     _bannerInfoService = bannerInfoService;
     _generalFunctions  = generalFunctions;
     _listsService      = listsService;
     _listInfoService   = listInfoService;
 }
Beispiel #13
0
 public HomeController(IBannerService bannerService,
                       IWorkContext workContext,
                       IPictureService pictureService)
 {
     this._bannerService  = bannerService;
     this._workContext    = workContext;
     this._pictureService = pictureService;
 }
 public TasarimController(IBannerService bannerService,
                          IMapper mapper, IWebHostEnvironment iweb, IKategoriService kategoriService)
 {
     _mapper          = mapper;
     _bannerService   = bannerService;
     _iweb            = iweb;
     _kategoriService = kategoriService;
 }
Beispiel #15
0
 public CheckoutController(Cart cart, IBannerService bannerService, ICommonService commonService, ICheckoutService checkoutService)
 {
     _cart            = cart;
     _bannerService   = bannerService;
     _commonService   = commonService;
     _checkoutService = checkoutService;
     _siteSettings    = _commonService.GetSiteSettings();
 }
Beispiel #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();
 }
 public BannerController(IBannerService bannerService,
                         ITranslationService translationService,
                         ILanguageService languageService)
 {
     _bannerService      = bannerService;
     _translationService = translationService;
     _languageService    = languageService;
 }
Beispiel #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);
 }
Beispiel #19
0
 public CartController(Cart cart, IBannerService bannerService, ICommonService commonService, IProductService productService)
 {
     _cart           = cart;
     _bannerService  = bannerService;
     _commonService  = commonService;
     _siteSettings   = _commonService.GetSiteSettings();
     _productService = productService;
 }
Beispiel #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);
 }
 public TemplateConfigAppService(ILogger <TemplateConfigAppService> logger, ICommonService commonService, ICurrentContext context, ITemplateService templateService, IBannerService bannerService)
 {
     _logger          = logger;
     _templateService = templateService;
     _bannerService   = bannerService;
     _commonService   = commonService;
     _context         = context;
 }
Beispiel #22
0
 public UserService(AdvertisementContext context, IConfiguration configuration
                    , IDividingService dividingService, IBannerService bannerService)
 {
     _configuration           = configuration;
     _context                 = context;
     _dividingDividingService = dividingService;
     _bannerService           = bannerService;
 }
 public BannerController(IBannerService bannerService, IMapper mapper, IHostingEnvironment env,
                         IProductCategoryService productCategoryService)
 {
     _bannerService          = bannerService;
     _productCategoryService = productCategoryService;
     _env    = env;
     _mapper = mapper;
 }
 public BannerController(IBannerService bannerService,
                         ILocalizationService localizationService,
                         ILanguageService languageService)
 {
     this._bannerService       = bannerService;
     this._localizationService = localizationService;
     this._languageService     = languageService;
 }
Beispiel #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;
        }
Beispiel #26
0
 /// <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;
 }
 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;
 }
Beispiel #28
0
 public BannerController(
     IBannerService BannerService,
     IHostingEnvironment environment,
     LogService logService)
 {
     _BannerService = BannerService;
     _logService    = logService;
     _environment   = environment;
 }
Beispiel #29
0
 public BannersController(ILocalAuthenticationService authenticationService,
                          IUserService userService,
                          IBannerService bannerService,
                          IExternalAuthenticationService externalAuthenticationService,
                          IFormsAuthentication formsAuthentication,
                          IActionArguments actionArguments)
 {
     _bannerService = bannerService;
 }
 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();
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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;
 }
Beispiel #34
0
 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;
 }
Beispiel #35
0
        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"));
        }
Beispiel #36
0
 public BannerController(IBannerService BannerService)
 {
     _BannerService = BannerService;
 }
 public ManageBannerHandler(IUnitOfWork pUow, IBannerService pServ)
 {
     this.iUoW = pUow;
     this.iServ = pServ;
 }
 public BannerController(IBannerService banners)
 {
     this.banners = banners;
 }
Beispiel #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;
 }
 public BannerManagementController(IBannerService BannerService)
 {
     this._bannerService = BannerService;
 }
 public BannerController(IBannerService bannerService, IUnitOfWork uow)
     : base(uow)
 {
     _bannerService = bannerService;
 }
Beispiel #43
0
 public BannerController(IUnitOfWork unitOfWork, IBannerService bannerService)
 {
     this._unitOfWork = unitOfWork;
     this._bannerService = bannerService;
 }
Beispiel #44
0
 public void TestInitialize()
 {
     _context = new PortalProjectContext();
     _uow = new UnitOfWork(_context);
     _bannerService = new BannerService(_uow);
 }