public void Init()
 {
     this.sanitizeService = new HtmlSanitizerAdapter();
     this.articlesService = ObjectFactory.GetArticleService();
     this.userService = ObjectFactory.GetUserService();
     this.categories = ObjectFactory.GetAtricleCategoriesService();
     this.controller = new ArticleController(this.userService, this.articlesService, this.categories, this.sanitizeService);
     this.controller.CurrentUser = this.userService.GetUser("test");
 }
 public void Init()
 {
     this.sanitizeService        = new HtmlSanitizerAdapter();
     this.articlesService        = ObjectFactory.GetArticleService();
     this.userService            = ObjectFactory.GetUserService();
     this.categories             = ObjectFactory.GetAtricleCategoriesService();
     this.controller             = new ArticleController(this.userService, this.articlesService, this.categories, this.sanitizeService);
     this.controller.CurrentUser = this.userService.GetUser("test");
 }
 public ArticleController(IUserService usersService, IArticleService articlesService, IAtricleCategoriesService articleCategoriesService)
     :base(usersService)
 {
     this.articlesService = articlesService;
     this.articleCategoriesService = articleCategoriesService;
 }
 public ArticlesController(IArticleService articles, IAtricleCategoriesService categories)
 {
     this.articles = articles;
     this.categories = categories;
 }
 public void Init()
 {
     this.articles   = ObjectFactory.GetArticleService();
     this.categories = ObjectFactory.GetAtricleCategoriesService();
     this.controller = new ArticlesController(this.articles, this.categories);
 }
 public void Init()
 {
     this.articles = ObjectFactory.GetArticleService();
     this.categories = ObjectFactory.GetAtricleCategoriesService();
     this.controller = new ArticlesController(this.articles, this.categories);
 }
 public ArticleController(IUserService usersService, IArticleService articlesService, IAtricleCategoriesService articleCategoriesService, ISanitizer sanitizeService)
     : base(usersService, sanitizeService)
 {
     this.articlesService          = articlesService;
     this.articleCategoriesService = articleCategoriesService;
 }
Пример #8
0
 public ArticlesController(IArticleService articles, IAtricleCategoriesService categories)
 {
     this.articles   = articles;
     this.categories = categories;
 }