public ArticlesApiController(
     ILog log,
     IServices services,
     IRetrievers retrievers,
     IRepositories repositories)
     : base(log)
 {
     this.articlesRepository = repositories.ArticlesRepository;
     this.articlesRetriever  = retrievers.ArticlesRetriever;
     this.articlesService    = services.ArticlesService;
 }
        public ArticlesRetriever_Tests()
        {
            IRetrievers retrievers = DependencyResolver.Resolve <IRetrievers>();

            this.articlesRetriever = retrievers.ArticlesRetriever;

            IRepositories repositories = DependencyResolver.Resolve <IRepositories>();

            this.articlesRepository          = repositories.ArticlesRepository;
            this.articleRolesRepository      = repositories.ArticleRolesRepository;
            this.categoriesRepository        = repositories.CategoriesRepository;
            this.articleCategoriesRepository = repositories.ArticleCategoriesRepository;

            this.roleManager = DependencyResolver.Resolve <RoleManager <ApplicationRole> >();
        }
示例#3
0
 public HomeController(ILog log, IRetrievers retrievers, UserManager <ApplicationUser> userManager)
     : base(log, userManager)
 {
     this.articlesRetriever = retrievers.ArticlesRetriever;
 }
示例#4
0
 public ArticleController(ILog log, IRetrievers retrievers)
     : base(log)
 {
     this.articlesRetriever = retrievers.ArticlesRetriever;
     this.imagesRetriever   = retrievers.ImagesRetriever;
 }
 public SearchArticlesController(ILog log, IRetrievers retrievers, IRepositories repositories, UserManager <ApplicationUser> userManager)
     : base(log, userManager)
 {
     this.articlesRetriever    = retrievers.ArticlesRetriever;
     this.categoriesRepository = repositories.CategoriesRepository;
 }