Ejemplo n.º 1
0
 static void ShowTags(ITagService tagService)
 {
     foreach (var tag in tagService.GetAll())
     {
         System.Console.WriteLine(tag.Name + " " + tag.Count);
     }
 }
Ejemplo n.º 2
0
        public void SetUp()
        {
            _mockRepository = new MockRepository();
            _tagRepository = _mockRepository.DynamicMock<IRepository<Tag>>();

            _tagService = new TagService(_tagRepository);
        }
Ejemplo n.º 3
0
 public PostController(IPostService service, ITagService ts, ICommentService commentService, IUserService us)
 {
     this.postService = service;
     this.tagService = ts;
     this.userService = us;
     this.commentService = commentService;
 }
Ejemplo n.º 4
0
 public EntryController(IEntryService entryService, ICommentService commentService, IBlogService blogService, ITagService tagService)
 {
     _entryService = entryService;
     _commentService = commentService;
     _blogService = blogService;
     _tagService = tagService;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// public ctor - will generally just be used for unit testing
 /// </summary>
 /// <param name="contentService"></param>
 /// <param name="mediaService"></param>
 /// <param name="contentTypeService"></param>
 /// <param name="dataTypeService"></param>
 /// <param name="fileService"></param>
 /// <param name="localizationService"></param>
 /// <param name="packagingService"></param>
 /// <param name="entityService"></param>
 /// <param name="relationService"></param>
 /// <param name="sectionService"></param>
 /// <param name="treeService"></param>
 /// <param name="tagService"></param>
 public ServiceContext(
     IContentService contentService, 
     IMediaService mediaService, 
     IContentTypeService contentTypeService, 
     IDataTypeService dataTypeService, 
     IFileService fileService, 
     ILocalizationService localizationService, 
     PackagingService packagingService, 
     IEntityService entityService,
     IRelationService relationService,
     ISectionService sectionService,
     IApplicationTreeService treeService,
     ITagService tagService)
 {
     _tagService = new Lazy<ITagService>(() => tagService);     
     _contentService = new Lazy<IContentService>(() => contentService);        
     _mediaService = new Lazy<IMediaService>(() => mediaService);
     _contentTypeService = new Lazy<IContentTypeService>(() => contentTypeService);
     _dataTypeService = new Lazy<IDataTypeService>(() => dataTypeService);
     _fileService = new Lazy<IFileService>(() => fileService);
     _localizationService = new Lazy<ILocalizationService>(() => localizationService);
     _packagingService = new Lazy<PackagingService>(() => packagingService);
     _entityService = new Lazy<IEntityService>(() => entityService);
     _relationService = new Lazy<IRelationService>(() => relationService);
     _sectionService = new Lazy<ISectionService>(() => sectionService);
     _treeService = new Lazy<IApplicationTreeService>(() => treeService);
 }
 public void SetUp()
 {
     _loggingService = A.Fake<ILogService>();
     _tagService = A.Fake<ITagService>();
     _facebookService = A.Fake<IFacebookService>();
     _controller = new ChartController(_facebookService, _loggingService, _tagService);
 }
Ejemplo n.º 7
0
 public TaskController(IAccountService accountService, ITaskService taskService, ITaskListService taskListService, ITagService tagService)
 {
     _accountService = accountService;
     _taskService = taskService;
     _taskListService = taskListService;
     _tagService = tagService;
 }
Ejemplo n.º 8
0
 public TagsFilterForms(
     IShapeFactory shapeFactory,
     ITagService tagService) {
     _tagService = tagService;
     Shape = shapeFactory;
     T = NullLocalizer.Instance;
 }
Ejemplo n.º 9
0
 public TagsScheduledJob()
 {
     IsStoppable = true;
     _contentTypeRepository = ServiceLocator.Current.GetInstance<IContentTypeRepository>();
     _tagService = ServiceLocator.Current.GetInstance<ITagService>();
     _contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>();
 }
Ejemplo n.º 10
0
 public ArticleController(IBlogService blogService, IArticleService articleService, ITagService tagService, ICommentService commentService)
 {
     _blogService = blogService;
     _articleService = articleService;
     _tagService = tagService;
     _commentService = commentService;
 }
Ejemplo n.º 11
0
 public LeadController(
     ILeadService LeadService,
     IContactService contactService,
     IMembershipService membershipService,
     IRoleService roleService,
     INoteService noteService,
     IActivityService activityService,
     ISaleService saleService,
     ITaskService taskService,
     ViewDataHelper viewdataHelper,
     ICampaignService campaignService,
     ITagService tagService)
 {
     _leadService = LeadService;
     _contactService = contactService;
     _membershipService = membershipService;
     _roleService = roleService;
     _noteService = noteService;
     _activityService = activityService;
     _saleService = saleService;
     _taskService = taskService;
     _viewdataHelper = viewdataHelper;
     _campaignService = campaignService;
     _tagService = tagService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="YearController"/> class.
 /// </summary>
 /// <param name="recentRepository">The recent repository.</param>
 /// <param name="tagService">The tag service.</param>
 /// <param name="tagRepository">The tag repository.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public YearController(IRecentRepository recentRepository, ITagService tagService, ITagRepository tagRepository, IPersistentCollectionService persistentCollectionService)
 {
     _recentRepository = recentRepository;
     _persistentCollectionService = persistentCollectionService;
     _tagRepository = tagRepository;
     _tagService = tagService;
 }
Ejemplo n.º 13
0
 public TagsController(
     ITagService tagService,
     IMembershipService membershipService)
 {
     _tagService = tagService;
     _membershipService = membershipService;
 }
Ejemplo n.º 14
0
 public ArticleController(IArticleService articleService, IRubricService rubricService, IImageService imageService, ITagService tagService)
 {
     this.articleService = articleService;
     this.rubricService = rubricService;
     this.imageService = imageService;
     this.tagService = tagService;
 }
Ejemplo n.º 15
0
 public TagController(ITagService tagService, ITagMapper tagMapper, IWordMapper wordMapper, IWordService wordService)
 {
     _tagService = tagService;
     _tagMapper = tagMapper;
     _wordMapper = wordMapper;
     _wordService = wordService;
 }
Ejemplo n.º 16
0
 public PostAdminController(ICategoryService categoryService, IPostService p, ITagService ts, IUserService us)
 {
     this.categoryService = categoryService;
     this.postService = p;
     this.tagService = ts;
     this.userService = us;
 }
Ejemplo n.º 17
0
 public ApiControllerBuilder()
 {
     _wordService = null;
     _tagService = null;
     _appService = null;
     _requestLogService = null;
 }
Ejemplo n.º 18
0
 public WikiPageController(IOrchardServices orchardServices, 
     IRepository<WikiPageAttachmentRecord> repoWikiAttachment,
     ITagService tagService,
     IAuthorizationService authorizationService,
     INotifier notifier,
     ISiteService siteService,
     ISearchService searchService,
     IShapeFactory shapeFactory,
     IWikiPageService wikiPageService,
     IMediaService mediaService
    ){
     _orchardServices = orchardServices;
     _repoWikiAttachment = repoWikiAttachment;
     _tagService = tagService;
     _authorizationService = authorizationService;
     _notifier = notifier;
     _searchService = searchService;
     _siteService = siteService;
     _wikiPageService = wikiPageService;
     _mediaService = mediaService;
     Logger = NullLogger.Instance;
     Shape = shapeFactory;
    
     
 }
Ejemplo n.º 19
0
 public PostsController(IPostService postService, ITagService tagService, ICategoryService catService, IUserService userService)
 {
     this.postService = postService;
     this.tagService = tagService;
     this.catService = catService;
     this.userService = userService;
 }
Ejemplo n.º 20
0
        public void Initialize(InitializationEngine context)
        {
            _tagService = new TagService();
            _pageTypeRepository = ServiceLocator.Current.GetInstance<PageTypeRepository>();

            DataFactory.Instance.PublishedPage += OnPublishedPage;
        }
Ejemplo n.º 21
0
        public WinDbFiller(IFingerprintService fingerprintService, IWorkUnitBuilder workUnitBuilder, ITagService tagService)
        {
            this.fingerprintService = fingerprintService;
            this.workUnitBuilder = workUnitBuilder;
            this.tagService = tagService;
            InitializeComponent();
            Icon = Resources.Sound;
            foreach (object item in ConfigurationManager.ConnectionStrings)
            {
                _cmbDBFillerConnectionString.Items.Add(item.ToString());
            }

            if (_cmbDBFillerConnectionString.Items.Count > 0)
            {
                _cmbDBFillerConnectionString.SelectedIndex = 0;
            }

            _btnStart.Enabled = false;
            _btnStop.Enabled = false;
            _nudThreads.Value = MaxThreadToProcessFiles;
            _pbTotalSongs.Visible = false;
            hashAlgorithm = 0; /**/
            _lbAlgorithm.SelectedIndex = 0; /*Set default algorithm LSH*/

            if (hashAlgorithm == HashAlgorithm.LSH)
            {
                _nudHashKeys.ReadOnly = false;
                _nudHashTables.ReadOnly = false;
            }

            object[] items = Enum.GetNames(typeof (StrideType)); /*Add enumeration types in the combo box*/
            _cmbStrideType.Items.AddRange(items);
            _cmbStrideType.SelectedIndex = 0;
        }
Ejemplo n.º 22
0
 public ImagenesController(
     IImagenService imagenService,
     ITagService tagService)
 {
     this.imagenService = imagenService;
     this.tagService = tagService;
 }
 public WordManagingService(IWordService wordService, IWordTranslationService wordTranslationService,
                            ITagService tagService)
 {
     this.wordService = wordService;
     this.wordTranslationService = wordTranslationService;
     this.tagService = tagService;
 }
Ejemplo n.º 24
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="log"></param>
        /// <param name="localizationService"></param>
        /// <param name="siteService"></param>
        /// <param name="userService"></param>
        /// <param name="contentItemService"></param>
        /// <param name="contentItemServiceForPage"></param>
        /// <param name="commentService"></param>
        /// <param name="categoryService"></param>
        /// <param name="tagService"></param>
        /// <param name="searchService"></param>
        /// <param name="widgetService"></param>
        /// <param name="messageService"></param>
        protected ContentControllerBase( ILog log, 
                                       ILocalizationService localizationService,
                                       ISiteService siteService,
                                       IUserService userService,
                                       IContentItemService<Post> contentItemService,
                                       IContentItemService<Page> contentItemServiceForPage,
                                       ICommentService commentService,
                                       ICategoryService categoryService,
                                       ITagService tagService,
                                       ISearchService searchService,
                                       IWidgetService widgetService,
                                       IMessageService messageService)
        {
            this.log = log;
             this.localizationService = IoC.Resolve<ILocalizationService>();
             this.userService = IoC.Resolve<IUserService>();
             this.siteService = IoC.Resolve<ISiteService>();
             this.categoryService = IoC.Resolve<ICategoryService>();
             this.tagService = IoC.Resolve<ITagService>();
             this.contentItemService = contentItemService;
             this.contentItemServiceForPage = contentItemServiceForPage;
             this.commentService = commentService;
             this.searchService = searchService;
             this.widgetService = widgetService;
             this.messageService = messageService;

             registeredWidgetComponents = new List<IWidgetComponent>();

             currentCulture = Thread.CurrentThread.CurrentUICulture;
        }
Ejemplo n.º 25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BlogsApiContext" /> class.
 /// </summary>
 /// <param name="lifetimeScope">The lifetime scope.</param>
 /// <param name="tagService">The tag service.</param>
 /// <param name="blogService">The blog service.</param>
 /// <param name="authorService">The author service.</param>
 /// <param name="repository">The repository.</param>
 public BlogsApiContext(ILifetimeScope lifetimeScope, ITagService tagService, IBlogService blogService, IAuthorService authorService, IRepository repository = null)
     : base(lifetimeScope, repository)
 {
     this.tagService = tagService;
     this.blogService = blogService;
     this.authorService = authorService;
 }
Ejemplo n.º 26
0
 public PhotosController(ISessionService sessionService, IAlbumService albumService, IPhotoService photoService, ITagService tagService)
 {
     this.mSessionService = sessionService;
     this.mAlbumService = albumService;
     this.mPhotoService = photoService;
     this.mTagService = tagService;
 }
Ejemplo n.º 27
0
 public ContactController(IContactService iContactService, IUnitOfWork unitOfWork, IUserInfo iUserInfo, ITagService iTagService, ICustomerService iCustomerService)
 {
     _iContactService = iContactService;
     _unitOfWork = unitOfWork;
     _iUserInfo = iUserInfo;
     _iTagService = iTagService;
     _iCustomerService = iCustomerService;
 }
 public ArticleController(IUserService userService, IArticleService articleService, IRoleService roleService,ITagService tagService,ICommentService commentService)
 {
     this.userService = userService;
     this.articleService = articleService;
     this.roleService = roleService;
     this.tagService = tagService;
     this.commentService = commentService;
 }
Ejemplo n.º 29
0
 public TagController(
     ITagService tagService,
     IUserService userService,
     IFormsAuthenticationService formsAuthenticationService)
     : base(userService, formsAuthenticationService)
 {
     _tagService = tagService;
 }
Ejemplo n.º 30
0
 public HomeController(ITagService tagService, IAuthorizer authorizer, INotifier notifier, IContentManager contentManager)
 {
     _tagService = tagService;
     _authorizer = authorizer;
     _notifier = notifier;
     _contentManager = contentManager;
     T = NullLocalizer.Instance;
 }
Ejemplo n.º 31
0
 public TagController(ITagService tagService, IBookService bookService, IMapper mapper)
 {
     _tagService  = tagService;
     _mapper      = mapper;
     _bookService = bookService;
 }
Ejemplo n.º 32
0
 public AddModel(IArticleService articleService, IHttpContextAccessor httpContextAccessor, IHostingEnvironment _environment, ITagService tagService, ICategoryService categoryService)
 {
     this._environment    = _environment;
     this.tagService      = tagService;
     this.categoryService = categoryService;
     Article                  = new Article();
     this.articleService      = articleService;
     this.httpContextAccessor = httpContextAccessor;
     userId = Convert.ToInt32(httpContextAccessor.HttpContext.User.Claims.FirstOrDefault(x => x.Type == "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier").Value);
 }
Ejemplo n.º 33
0
        public HomeController(ICategoryService categoryService, IBlogService blogService, ITagService tagService)
        {
            _categoryService = categoryService;

            _blogService = blogService;

            _tagService = tagService;
        }
Ejemplo n.º 34
0
        public static T FillTags <T>(this T item, ITagService tagService) where T : ITaggedEntity
        {
            tagService.FillTags(item);

            return(item);
        }
 public TagController(ITagService service)
 {
     _service = service;
 }
Ejemplo n.º 36
0
 public TagsModel(ITagService tagService)
 {
     _tagSvc = tagService;
 }
Ejemplo n.º 37
0
 public HomeController(IPostService postService, ITagService tagService, ICategoryService categoryService)
 {
     _postService     = postService;
     _tagService      = tagService;
     _categoryService = categoryService;
 }
Ejemplo n.º 38
0
 public TagController(ITagService tagService)
 {
     this.tagService = tagService;
 }
 public NotificationGroupsController(ApplicationDbContext context, ITagService tagService)
 {
     _context    = context;
     _tagService = tagService;
 }
Ejemplo n.º 40
0
 public ArticleController(IArticleService articleService, ICategoryService categoryService, ICommentService commentService, ITagService tagService)
 {
     this.articleService  = articleService;
     this.categoryService = categoryService;
     this.commentService  = commentService;
     this.tagService      = tagService;
 }
Ejemplo n.º 41
0
 public TagsController(ITagService service, IMapper mapper)
 {
     _service = service;
     _mapper  = mapper;
 }
 public TarefasController(ITarefaService tarefaService, ICategoriaService categoriaService, ITagService tagService)
 {
     _tarefaService    = tarefaService;
     _categoriaService = categoriaService;
     _tagService       = tagService;
 }
Ejemplo n.º 43
0
 public MockItemPresenter(IBookService bookRepository, IMediaItemService mediaItemService, ITagService tagService, IAuthorService authorService, IPublisherService publisherService,
                          IMainWindow view,
                          DataTable allItemsDt)
     : base(bookRepository, mediaItemService, tagService, authorService, publisherService, view)
 {
     this._allItems = allItemsDt;
 }
Ejemplo n.º 44
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultBlogService" /> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 /// <param name="urlService">The URL service.</param>
 /// <param name="repository">The repository.</param>
 /// <param name="optionService">The option service.</param>
 /// <param name="accessControlService">The access control service.</param>
 /// <param name="securityService">The security service.</param>
 /// <param name="cmsConfiguration">The CMS configuration.</param>
 /// <param name="contentService">The content service.</param>
 /// <param name="tagService">The tag service.</param>
 /// <param name="pageService">The page service.</param>
 /// <param name="redirectService">The redirect service.</param>
 /// <param name="masterPageService">The master page service.</param>
 /// <param name="unitOfWork">The unit of work.</param>
 public DefaultBlogService(ICmsConfiguration configuration, IUrlService urlService, IRepository repository,
                           IOptionService optionService, IAccessControlService accessControlService, ISecurityService securityService,
                           ICmsConfiguration cmsConfiguration, IContentService contentService, ITagService tagService,
                           IPageService pageService, IRedirectService redirectService, IMasterPageService masterPageService,
                           IUnitOfWork unitOfWork)
 {
     this.configuration        = configuration;
     this.urlService           = urlService;
     this.repository           = repository;
     this.optionService        = optionService;
     this.accessControlService = accessControlService;
     this.securityService      = securityService;
     this.cmsConfiguration     = cmsConfiguration;
     this.contentService       = contentService;
     this.pageService          = pageService;
     this.redirectService      = redirectService;
     this.masterPageService    = masterPageService;
     this.tagService           = tagService;
     this.unitOfWork           = unitOfWork;
 }
Ejemplo n.º 45
0
 public TagController(IChargeService chargeService, IChargeTagRelationService chargeTagRelationService, INoteService noteService, ITagService tagService)
 {
     _chargeService            = chargeService;
     _chargeTagRelationService = chargeTagRelationService;
     _noteService = noteService;
     _tagService  = tagService;
 }
Ejemplo n.º 46
0
 public TagsController(IErrorService errorService, ITagService tagService)
 {
     this.errorService = errorService;
     this.tagService   = tagService;
 }
Ejemplo n.º 47
0
 public CategoryController(IMapper mapper, IOptionsSnapshot <AppSettings> settings, IBookService book, ICategoryService category, ITagService tag)
 {
     Mapper          = mapper;
     AppSettings     = settings.Value;
     BookService     = book;
     CategoryService = category;
     TagService      = tag;
 }
Ejemplo n.º 48
0
 public TagController()
 {
     tagService = new TagService();
 }
Ejemplo n.º 49
0
 public DetailsModel(ICharacterTemplateService characterTemplateService,
                     ITagService tagService)
 {
     _characterTemplateService = characterTemplateService;
     _tagService = tagService;
 }
Ejemplo n.º 50
0
 public TagsController(ITagService tagService)
 {
     this.tagService = tagService ?? throw new ArgumentNullException(nameof(tagService));
 }
Ejemplo n.º 51
0
 public PeopleController(IPeopleService peopleService, ITagService tagService, IPhoneService phoneService)
 {
     this.peopleService = peopleService;
     this.tagService    = tagService;
     this.phoneService  = phoneService;
 }
Ejemplo n.º 52
0
 public AdminController(IAccountService _accountService, IProductService _productService, IImageService _imageService,
                        IManufactorService _manufactorService, ICategoryService _categoryService, IAnimeService _animeService, IStatusService _statusService
                        , IBlogService _blogService, IProductTagService _productTagService, ITagService _tagService, IWebsiteAttributeService _websiteAttributeService
                        , IMessageSendingService _messageSendingService, IFAQService _faqService)
 {
     this._accountService          = _accountService;
     this._productService          = _productService;
     this._imageService            = _imageService;
     this._manufactorService       = _manufactorService;
     this._categoryService         = _categoryService;
     this._animeService            = _animeService;
     this._statusService           = _statusService;
     this._blogService             = _blogService;
     this._productTagService       = _productTagService;
     this._tagService              = _tagService;
     this._websiteAttributeService = _websiteAttributeService;
     this._messageSendingService   = _messageSendingService;
     this._faqService              = _faqService;
 }
 public RelatedPostsViewComponent(IContentService contentService, IMapper mapper, IAuthorService authorService,
                                  ICategoryService categoryService, IRoutingService routingService, ITagService tagService)
 {
     _contentService  = contentService;
     _authorService   = authorService;
     _categoryService = categoryService;
     _routingService  = routingService;
     _tagService      = tagService;
     _mapper          = mapper;
 }
Ejemplo n.º 54
0
 public TagController(AuditBaseRepository <Tag> tagRepository, BaseRepository <TagArticle> tagArticleRepository, IMapper mapper, ICurrentUser currentUser, ITagService tagService)
 {
     _tagRepository        = tagRepository;
     _tagArticleRepository = tagArticleRepository;
     _mapper      = mapper;
     _currentUser = currentUser;
     _tagService  = tagService;
 }
Ejemplo n.º 55
0
 public TagsController(ITagService tagService, IMapper mapper)
 {
     _tagService = tagService;
     _mapper     = mapper;
 }
Ejemplo n.º 56
0
 public TagsController(ITagService tagService)
 {
     _tagService = tagService;
 }
Ejemplo n.º 57
0
 public ArticleController(ISeoService seoService, IArticleService articleService, ICategoryService categoryService, ITagService tagService, ICloudService cloudService, ITaxonomyService taxonomyService, UserManager <User> userManager)
 {
     _articleService  = articleService;
     _categoryService = categoryService;
     _tagService      = tagService;
     _cloudService    = cloudService;
     _taxonomyService = taxonomyService;
     _userManager     = userManager;
     _seoService      = seoService;
 }
Ejemplo n.º 58
0
 public TagController(ITagService tagService, IDestinationService destinationService)
 {
     this.tagService         = tagService;
     this.destinationService = destinationService;
 }
Ejemplo n.º 59
0
 public AddTagCommand(ITagService service)
 {
     this.service = service;
 }
Ejemplo n.º 60
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TagQuery"/> class.
 /// </summary>
 public TagQuery(ITagService tagService, IPublishedContentQuery contentQuery, UmbracoMapper mapper)
 {
     _tagService   = tagService ?? throw new ArgumentNullException(nameof(tagService));
     _contentQuery = contentQuery ?? throw new ArgumentNullException(nameof(contentQuery));
     _mapper       = mapper;
 }