Ejemplo n.º 1
0
 public ArticleController(IArticleService _articleService, IRequestCacheService _requestCacheService,
     ISitemapService _sitemapService)
 {
     articleService = _articleService;
     requestCacheService = _requestCacheService;
     sitemapService = _sitemapService;
 }
        public static string GetFormattedBreadCrumb(this ArticleGroup category,
            IArticleService articleService,
            string separator = ">>")
        {
            if (category == null)
                throw new ArgumentNullException("category");

            string result = string.Empty;

            //used to prevent circular references
            var alreadyProcessedArticleGroupIds = new List<int>() { };

            while (category != null &&  //not null
                !category.Deleted &&  //not deleted
                !alreadyProcessedArticleGroupIds.Contains(category.Id)) //prevent circular references
            {
                if (String.IsNullOrEmpty(result))
                {
                    result = category.Name;
                }
                else
                {
                    result = string.Format("{0} {1} {2}", category.Name, separator, result);
                }

                alreadyProcessedArticleGroupIds.Add(category.Id);

                category = articleService.GetArticleGroupById(category.ParentGroupId);

            }
            return result;
        }
 public ArticleController(ISimpleAccountManager simpleAccount, IArticleService articleService, IHelperServices helperServices)
     : base(simpleAccount, articleService)
 {
     _simpleAccount = simpleAccount;
     _articleService = articleService;
     _helperServices = helperServices;
 }
Ejemplo n.º 4
0
 public ArticleController(IBlogService blogService, IArticleService articleService, ITagService tagService, ICommentService commentService)
 {
     _blogService = blogService;
     _articleService = articleService;
     _tagService = tagService;
     _commentService = commentService;
 }
Ejemplo n.º 5
0
 public PictureController(IPictureDataProvider _pictureDataProvider, IArticleService _articleService, IGalleryService _galleryService, IThumbnailGeneratorService _thumbnailGenerator)
 {
     pictureDataProvider = _pictureDataProvider;
     articleService = _articleService;
     this._galleryService = _galleryService;
     this._thumbnailGenerator = _thumbnailGenerator;
 }
 public void Init()
 {
     this.cacheService = new HttpCacheService();
     this.productsService = ObjectFactory.GetProductService();
     this.articlesService = ObjectFactory.GetArticleService();
     this.controller = new HomeController(this.cacheService, this.productsService, this.articlesService);
 }
        public static IList<ArticleGroup> GetArticleGroupBreadCrumb(this ArticleGroup articleGroup,
            IArticleService articleService,
            bool showHidden = false)
        {
            if (articleGroup == null)
                throw new ArgumentNullException("articleGroup");

            var result = new List<ArticleGroup>();

            //used to prevent circular references
            var alreadyProcessedArticleGroupIds = new List<int>() { };

            while (articleGroup != null && //not null
                !articleGroup.Deleted && //not deleted
                (showHidden || articleGroup.Published) && //published
                !alreadyProcessedArticleGroupIds.Contains(articleGroup.Id)) //prevent circular references
            {
                result.Add(articleGroup);

                alreadyProcessedArticleGroupIds.Add(articleGroup.Id);

                articleGroup = articleService.GetArticleGroupById(articleGroup.ParentGroupId);
            }
            result.Reverse();
            return result;
        }
Ejemplo n.º 8
0
 public ArticleController(IArticleService articleService, IActicleCommentService acticleCommentService, IReportService reportService, IConfigInfoService configInfoService)
 {
     _articleService = articleService;
     _acticleCommentService = acticleCommentService;
     _reportService = reportService;
     _configInfoService = configInfoService;
 }
Ejemplo n.º 9
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.º 10
0
        public PictureGalleryDisplayModel GetDisplayModel(string id, IArticleService articleService)
        {
            var pics =
                pictureDataProvider.PicturesForGallery(id)
                    .OrderBy(p => p.Sort)
                    .ThenBy(p => p.rating)
                    .ThenBy(p => p.TakenOn)
                    .Select(p =>
                        new PictureDisplayModel()
                        {
                            Author = p.Author,
                            FDirectory = p.fDirectory,
                            FName = p.fName,
                            Gallery = p.Gallery,
                            Height = p.height,
                            Wdith = p.width,
                            ThumbFBName = p.smallFName,
                            DscSI = p.DscSI,
                            DscEN = p.DscEN,
                            PicID = p.PicID,
                            Rating = p.rating
                        }).ToList();

            var article = articleService.GetByCode(id, HttpContext.Current.Language());
            var gal = new PictureGalleryDisplayModel(id, article != null ? article.Title : "",
                article != null ? article.Description : "", pics, article != null ? article.EventFrom : null, true);
            return gal;
        }
Ejemplo n.º 11
0
 public HomeController(IQuickLinkService quickLinkService, IUnitOfWorkAsync unitOfWork, IArticleService articleService, IArticleCategoryService articleCategoryService)
 {
     this.quickLinkService = quickLinkService;
     this.articleService = articleService;
     this.unitOfWork = unitOfWork;
     this.articleCategoryService = articleCategoryService;
 }
 public TransactionalMailSendingService(ISettingsProvider settingsProvider, IMailAccountsService mailAccountsService, IArticleService articleService, IMailSendingUtilsService mailSendingUtils, ISiteTestingService testingService)
 {
     _settingsProvider = settingsProvider;
     _mailAccountsService = mailAccountsService;
     _articleService = articleService;
     _mailSendingUtils = mailSendingUtils;
     _testingService = testingService;
 }
Ejemplo n.º 13
0
 public HelpController(
      IArticleService _ArticleService,
      IArticleCateService _ArticleCateService
   )
 {
     ArticleService = _ArticleService;
     ArticleCateService = _ArticleCateService;
 }
Ejemplo n.º 14
0
 public HomeController(IMessageService messageService, IApplicationUserManager userManager, IArticleService ArticleService, ITeacherService TeacherService, IArticleEvaluationService ArticleEvaluation)
 {
     _TeacherService = TeacherService;
     _ArticleEvaluationService = ArticleEvaluation;
     _ArticleService = ArticleService;
     _userManager = userManager;
     _messageService = messageService;
 }
 public ArticleController(IUserService service, IBlogService blogService,
     IArticleService articleService, ICommentService commentService)
 {
     _userService = service;
     _blogService = blogService;
     _articleService = articleService;
     _commentService = commentService;
 }
Ejemplo n.º 16
0
 public CommentService(IArticleService articleService, ICommentRepository commentRepository, ISessionManager sessionManger, IRoleService roleService, ISettingService settiongService)
 {
     _articleService = articleService;
     _commentRepository = commentRepository;
     _sessionManager = sessionManger;
     _roleService = roleService;
     _settiongService = settiongService;
 }
Ejemplo n.º 17
0
 public ArticleController(IUnitOfWork uow, IArticleService articleService, ICategoryService categoryService,
     IUserService userService)
 {
     _uow = uow;
     _articleService = articleService;
     _categoryService = categoryService;
     _userService = userService;
 }
 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.º 19
0
 public HomeController(IMessageService messageService, IApplicationUserManager userManager, IArticleService articleService, IApplicantService applicantService)
 {
     _applicantService = applicantService;
    
     _articleService = articleService;
     _userManager = userManager;
     _messageService = messageService;
 }
 public SearchController(IArticleService articleService, ITagRepository tagRepository,
     IBlogService blogService, IUserService userService)
 {
     _articleService = articleService;
     _tagRepository = tagRepository;
     _blogService = blogService;
     _userService = userService;
 }
Ejemplo n.º 21
0
 public SidebarController(IUserService userService, IArticleService articleService, ICategoryService categoryService, ICommentService commentService, ISettingService settionService)
 {
     _articleService = articleService;
     _categoryService = categoryService;
     _settionService = settionService;
     _commentService = commentService;
     _userService = userService;
 }
Ejemplo n.º 22
0
 public static IArticleService BuildArticleService()
 {
     if (article_Service == null)
     {
         article_Service = new ArticelService();
     }
     return article_Service;
 }
Ejemplo n.º 23
0
 public ArticleController(IArticleService articleService, ICategoryService categoryService,
     IPictureService pictureService, ArticleSettings articleSettings)
 {
     this._articleService = articleService;
     this._categoryService = categoryService;
     this._pictureService = pictureService;
     this._articleSettings = articleSettings;
 }
Ejemplo n.º 24
0
        //public HomeController() { }

        public HomeController(IOfficeLocationService officeLocationService, ITransportService transportService, IArticleService articleService) 
        {
            _transportService = transportService;
            _officeLocationService = officeLocationService;
            _articleService = articleService;

            //Enforce.NotNull(() => officeLocationService);
        }
Ejemplo n.º 25
0
 public HomeController(IUserService userService, IRoleService roleService, ICommentService commentService, IBlogService blogService, IArticleService articleService)
 {
     this.userService = userService;
     this.roleService = roleService;
     this.commentService = commentService;
     this.blogService = blogService;
     this.articleService = articleService;
 }
Ejemplo n.º 26
0
        public MaintenanzController(IArticleService articleService, ITransportService transportService) 
        {
            _transportService = transportService;
            _articleService = articleService;
            //_officeLocationService = officeLocationService;

            //Enforce.NotNull(() => officeLocationService);
        }
        public void SetUp()
        {
            _mockRepository = new MockRepository();
            _articleService = _mockRepository.DynamicMock<IArticleService>();

            _articleController = new ArticleController(_articleService);
            Mapper.CreateMap<Article, ArticleModel>();
            Mapper.CreateMap<ArticleModel, Article>();
        }
Ejemplo n.º 28
0
 public ArticleController(IUserService userSerivce, IRoleService roleService, IArticleService articleService, ICommentService commentService, ICategoryService categoryService, ISettingService settiongService)
 {
     _userSrvice = userSerivce;
     _roleService = roleService;
     _articleService = articleService;
     _commentService = commentService;
     _categoryService = categoryService;
     _settiongService = settiongService;
 }
Ejemplo n.º 29
0
 public EditorController(
     IArticleService articleService, 
     IPeerReviewService peerReviewService,
     AdministrationService adminService)
 {
     this.articleService = articleService;
     this.peerReviewService = peerReviewService;
     this.adminService = adminService;
 }
 public ArticleEvaluationController(IReferentialTeacherService referentialTeacherService, IArticleService ArticleService, IAppraiserService appraiserService, IUnitOfWork unitOfWork, IArticleEvaluationService evaluationService, IQuestionService questionService)
 {
     _unitOfWork = unitOfWork;
     _evaluationService = evaluationService;
     _questionService = questionService;
     _appraiserService = appraiserService;
     _ArticleService = ArticleService;
     _referentialTeacherService = referentialTeacherService;
 }
 public DeleteArticleValidatorImpl(ILoggerFactory loggerFactory, IArticleService articleService)
 {
     _logger         = loggerFactory.CreateLogger <DeleteArticleValidatorImpl>();
     _articleService = articleService;
 }
Ejemplo n.º 32
0
 public ArticleController(IArticleMapper articleMapper, IArticleService articleService)
 {
     _articleMapper  = articleMapper;
     _articleService = articleService;
 }
Ejemplo n.º 33
0
 public ArticleController(IArticleService articleService, IModelRepository modelRepository, ICommentService commentService)
 {
     _articleService  = articleService;
     _modelRepository = modelRepository;
     _commentService  = commentService;
 }
 public ImportantArticlesViewComponent(IArticleService articleService)
 {
     this.articleService = articleService;
 }
Ejemplo n.º 35
0
 public MakeASaleForm()
 {
     InitializeComponent();
     salesService   = (ISalesService)Program.ServiceProvider.GetService(typeof(ISalesService));
     articleService = (IArticleService)Program.ServiceProvider.GetService(typeof(IArticleService));
 }
Ejemplo n.º 36
0
 public QPController(IArticleService dbArticleService)
 {
     DbArticleService = dbArticleService;
 }
 public ArticlesController(IArticleService articles)
 {
     this.articles = articles;
 }
Ejemplo n.º 38
0
 public ArticlesController(IArticleService articleService, ICategoryService categoryService)
 {
     _articleService  = articleService;
     _categoryService = categoryService;
 }
Ejemplo n.º 39
0
 public ArticleController(IArticleService articleService, IUserService userService)
 {
     this.articleService = articleService;
     this.userService    = userService;
 }
Ejemplo n.º 40
0
        public HomeController(ILogger <HomeController> logger)
        {
            _logger = logger;

            _articleService = ServiceProxy.Create <IArticleService>(new Uri("fabric:/ArticleSF/ArticleSF.WebApi"));
        }
Ejemplo n.º 41
0
 public SearchController(ITagService ts, IArticleService arts)
 {
     tagService     = ts;
     articleService = arts;
 }
Ejemplo n.º 42
0
 public UserController(IUserService service, IArticleService dbArticleService, QPublishingOptions options)
     : base(dbArticleService, options)
 {
     _service = service;
 }
 public ArticleController(IArticleService articleService, ISessionManager sessionManager, ICommentService commentService)
 {
     _articleService = articleService;
     _sessionManager = sessionManager;
     _commentService = commentService;
 }
 public DeleteArticleCommandHandler(IArticleService articleService, IMapper mapper)
 {
     _articleService = articleService;
     _mapper         = mapper;
 }
Ejemplo n.º 45
0
 public ArticlesController(IArticleService categoryService, IMapper mapper)
 {
     _categoryService = categoryService;
     _mapper          = mapper;
 }
Ejemplo n.º 46
0
 public ArticleTypeService(IApplicationContext applicationContext, IArticleService articleService, ILocalize localize, CMSDbContext dbContext)
     : base(applicationContext, dbContext)
 {
     _articleService = articleService;
     _localize       = localize;
 }
Ejemplo n.º 47
0
 public ArticleController(IArticleService articleService, IMemberService memberService)
 {
     _ArticleService = articleService;
     _MemberService  = memberService;
     AddPageCrumbs("资源分类", "/cate");
 }
Ejemplo n.º 48
0
 public ViewPageBase(IArticleService articleService, ServiceContext services, AppCaches appCaches)
 {
     ArticleService = articleService;
     Services       = services;
     AppCaches      = appCaches;
 }
Ejemplo n.º 49
0
 public HomeController(UserManager <User> userManager, ICommentService commentService, IArticleService articleService, ICategoryService categoryService)
 {
     _userManager     = userManager;
     _commentService  = commentService;
     _articleService  = articleService;
     _categoryService = categoryService;
 }
Ejemplo n.º 50
0
 public ReviewsController(IArticleService articleService, IMovieService movieService)
 {
     _articleService = articleService;
     _movieService   = movieService;
 }
Ejemplo n.º 51
0
 public ArticleController(
     IArticleService service
     )
 {
     _service = service;
 }
Ejemplo n.º 52
0
 public ArticlesController(IArticleService articleService, ICategoryService categoryService, IConfiguration configuration)
 {
     _articleService  = articleService;
     _categoryService = categoryService;
     _configuration   = configuration;
 }
Ejemplo n.º 53
0
 public Wrapper(IArticleService articleservice, IWorkAreaService workAreaService)
 {
     _articleservice  = articleservice;
     _workAreaService = workAreaService;
 }
Ejemplo n.º 54
0
 public ArticleController(IArticleService articleService, ICategoryService categoryService, IAuthorService authorService)
 {
     _articleService  = articleService;
     _categoryService = categoryService;
     _authorService   = authorService;
 }
 public DeleteArticleCommandHandler(IArticleService articleService)
 {
     this.articleService = articleService;
 }
Ejemplo n.º 56
0
 internal FakeArticlePubReqRepository(IArticleService articleService)
 {
     _articleService = articleService;
 }
 public ArticleController(IUserService usersService, IArticleService articlesService, IAtricleCategoriesService articleCategoriesService, ISanitizer sanitizeService)
     : base(usersService, sanitizeService)
 {
     this.articlesService          = articlesService;
     this.articleCategoriesService = articleCategoriesService;
 }
Ejemplo n.º 58
0
 internal FakeArticleDraftRepository(IArticleService articleService)
 {
     _articleService = articleService;
 }
Ejemplo n.º 59
0
 public ArticleController(IArticleService articleService)
 {
     _articleService = articleService;
 }
Ejemplo n.º 60
0
 public ArticleController(IArticleService articleService, ICommentService commentService)
 {
     _articleService = articleService;
     _commentService = commentService;
 }