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; }
public ArticleController(IBlogService blogService, IArticleService articleService, ITagService tagService, ICommentService commentService) { _blogService = blogService; _articleService = articleService; _tagService = tagService; _commentService = commentService; }
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; }
public ArticleController(IArticleService articleService, IActicleCommentService acticleCommentService, IReportService reportService, IConfigInfoService configInfoService) { _articleService = articleService; _acticleCommentService = acticleCommentService; _reportService = reportService; _configInfoService = configInfoService; }
public ArticleController(IArticleService articleService, IRubricService rubricService, IImageService imageService, ITagService tagService) { this.articleService = articleService; this.rubricService = rubricService; this.imageService = imageService; this.tagService = tagService; }
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; }
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; }
public HelpController( IArticleService _ArticleService, IArticleCateService _ArticleCateService ) { ArticleService = _ArticleService; ArticleCateService = _ArticleCateService; }
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; }
public CommentService(IArticleService articleService, ICommentRepository commentRepository, ISessionManager sessionManger, IRoleService roleService, ISettingService settiongService) { _articleService = articleService; _commentRepository = commentRepository; _sessionManager = sessionManger; _roleService = roleService; _settiongService = settiongService; }
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; }
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; }
public SidebarController(IUserService userService, IArticleService articleService, ICategoryService categoryService, ICommentService commentService, ISettingService settionService) { _articleService = articleService; _categoryService = categoryService; _settionService = settionService; _commentService = commentService; _userService = userService; }
public static IArticleService BuildArticleService() { if (article_Service == null) { article_Service = new ArticelService(); } return article_Service; }
public ArticleController(IArticleService articleService, ICategoryService categoryService, IPictureService pictureService, ArticleSettings articleSettings) { this._articleService = articleService; this._categoryService = categoryService; this._pictureService = pictureService; this._articleSettings = articleSettings; }
//public HomeController() { } public HomeController(IOfficeLocationService officeLocationService, ITransportService transportService, IArticleService articleService) { _transportService = transportService; _officeLocationService = officeLocationService; _articleService = articleService; //Enforce.NotNull(() => officeLocationService); }
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; }
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>(); }
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; }
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; }
public ArticleController(IArticleMapper articleMapper, IArticleService articleService) { _articleMapper = articleMapper; _articleService = articleService; }
public ArticleController(IArticleService articleService, IModelRepository modelRepository, ICommentService commentService) { _articleService = articleService; _modelRepository = modelRepository; _commentService = commentService; }
public ImportantArticlesViewComponent(IArticleService articleService) { this.articleService = articleService; }
public MakeASaleForm() { InitializeComponent(); salesService = (ISalesService)Program.ServiceProvider.GetService(typeof(ISalesService)); articleService = (IArticleService)Program.ServiceProvider.GetService(typeof(IArticleService)); }
public QPController(IArticleService dbArticleService) { DbArticleService = dbArticleService; }
public ArticlesController(IArticleService articles) { this.articles = articles; }
public ArticlesController(IArticleService articleService, ICategoryService categoryService) { _articleService = articleService; _categoryService = categoryService; }
public ArticleController(IArticleService articleService, IUserService userService) { this.articleService = articleService; this.userService = userService; }
public HomeController(ILogger <HomeController> logger) { _logger = logger; _articleService = ServiceProxy.Create <IArticleService>(new Uri("fabric:/ArticleSF/ArticleSF.WebApi")); }
public SearchController(ITagService ts, IArticleService arts) { tagService = ts; articleService = arts; }
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; }
public ArticlesController(IArticleService categoryService, IMapper mapper) { _categoryService = categoryService; _mapper = mapper; }
public ArticleTypeService(IApplicationContext applicationContext, IArticleService articleService, ILocalize localize, CMSDbContext dbContext) : base(applicationContext, dbContext) { _articleService = articleService; _localize = localize; }
public ArticleController(IArticleService articleService, IMemberService memberService) { _ArticleService = articleService; _MemberService = memberService; AddPageCrumbs("资源分类", "/cate"); }
public ViewPageBase(IArticleService articleService, ServiceContext services, AppCaches appCaches) { ArticleService = articleService; Services = services; AppCaches = appCaches; }
public HomeController(UserManager <User> userManager, ICommentService commentService, IArticleService articleService, ICategoryService categoryService) { _userManager = userManager; _commentService = commentService; _articleService = articleService; _categoryService = categoryService; }
public ReviewsController(IArticleService articleService, IMovieService movieService) { _articleService = articleService; _movieService = movieService; }
public ArticleController( IArticleService service ) { _service = service; }
public ArticlesController(IArticleService articleService, ICategoryService categoryService, IConfiguration configuration) { _articleService = articleService; _categoryService = categoryService; _configuration = configuration; }
public Wrapper(IArticleService articleservice, IWorkAreaService workAreaService) { _articleservice = articleservice; _workAreaService = workAreaService; }
public ArticleController(IArticleService articleService, ICategoryService categoryService, IAuthorService authorService) { _articleService = articleService; _categoryService = categoryService; _authorService = authorService; }
public DeleteArticleCommandHandler(IArticleService articleService) { this.articleService = articleService; }
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; }
internal FakeArticleDraftRepository(IArticleService articleService) { _articleService = articleService; }
public ArticleController(IArticleService articleService) { _articleService = articleService; }
public ArticleController(IArticleService articleService, ICommentService commentService) { _articleService = articleService; _commentService = commentService; }