コード例 #1
0
 public VoteService(IApplicationUserService ApplicationUserService,
                    INewsArticleService NewsArticleService,
                    Repository dbContext) : base(dbContext)
 {
     applicationUserService = ApplicationUserService;
     newsArticleService     = NewsArticleService;
 }
コード例 #2
0
 public NewsController(IHtmlService html, UserManager <Customer> customers, INewsArticleService newsArticles,
                       ICommentService comments)
 {
     this._html         = html;
     this._newsArticles = newsArticles;
     this._customers    = customers;
     this._comments     = comments;
 }
コード例 #3
0
 public CustomersController(IAdminUserService users, RoleManager <IdentityRole> roleManager,
                            UserManager <Customer> userManager, IComponentService components, INewsArticleService newsArticles,
                            IOrderService orderService)
 {
     this._users        = users;
     this._roleManager  = roleManager;
     this._userManager  = userManager;
     this._components   = components;
     this._newsArticles = newsArticles;
     this._orderService = orderService;
 }
コード例 #4
0
 public DataToRdfService(
     ITwitterUserService twitterUserService,
     INewsArticleService newsArticleService,
     IVoteService voteService,
     IApplicationUserService applicationUserService)
 {
     this.twitterUserService     = twitterUserService;
     this.newsArticleService     = newsArticleService;
     this.voteService            = voteService;
     this.applicationUserService = applicationUserService;
 }
コード例 #5
0
        public NewsArticlesServiceShould()
        {
            var options = new DbContextOptionsBuilder <Repository>()
                          .UseInMemoryDatabase(databaseName: "Add_writes_to_database" + this.GetHashCode())
                          .Options;
            var ctx = new Repository(options);

            twitterUserService = new TwitterUserService(ctx);

            IOptions <ProcessingUnitConfig> processingUnitConfig = Options.Create <ProcessingUnitConfig>(new ProcessingUnitConfig());

            newsArticleService = new NewsArticleService(twitterUserService, processingUnitConfig, ctx);
        }
コード例 #6
0
 public NewsArticleController(INewsArticleService articleService, ICategoryService categoryService, ILogger <NewsArticleController> logger)
 {
     _articleService  = articleService;
     _categoryService = categoryService;
     _logger          = logger;
 }
 public NewsArticlesController(INewsArticleService newsArticleService)
 {
     NewsArticleService = newsArticleService;
 }
コード例 #8
0
 public PartialsDemoController(INewsArticleService newsArticleService)
 {
     _newsArticleService = newsArticleService;
 }
コード例 #9
0
 public NewsArticleController(INewsArticleService newsArticleService, INewsArticleCategoryService newsArticleCategoryService, UserManager <User> userManager)
 {
     this.newsArticleService         = newsArticleService;
     this.newsArticleCategoryService = newsArticleCategoryService;
     this.userManager = userManager;
 }
コード例 #10
0
 public NewsArticleController(INewsArticleService newsArticleService)
 {
     this.newsArticleService = newsArticleService;
 }
コード例 #11
0
 public NewsComponent(INewsArticleService newsArticleService)
 {
     _newsArticleService = newsArticleService;
 }