Example #1
0
 public UnitOfWork(NewsAnalyzerContext db, INewsRepository newsRepository, IRepository <RssSource> rssRepository,
                   IRepository <User> userRepository, IRepository <Role> roleRepository, IRepository <Comment> commentRepository)
 {
     _db                = db;
     _newsRepository    = newsRepository;
     _rssRepository     = rssRepository;
     _userRepository    = userRepository;
     _roleRepository    = roleRepository;
     _commentRepository = commentRepository;
 }
Example #2
0
 public GetRefreshTokenByTokenValueQueryHandler(NewsAnalyzerContext dbContext, IMapper mapper)
 {
     _dbContext = dbContext;
     _mapper    = mapper;
 }
 public GetOwnNewsUrlQueryHadler(NewsAnalyzerContext context)
 {
     _context = context;
 }
Example #4
0
 public RssSourceRepository(NewsAnalyzerContext context) : base(context)
 {
     _context = context;
 }
Example #5
0
 public RegisterUserCommandHandler(NewsAnalyzerContext dbContext)
 {
     _dbContext = dbContext;
 }
 public GetCommentsByNewsIdQueryHadler(NewsAnalyzerContext dbContext, IMapper mapper)
 {
     _dbContext = dbContext;
     _mapper    = mapper;
 }
 public GetNewsBodyTextQueryHadler(NewsAnalyzerContext dbContext)
 {
     _dbContext = dbContext;
 }
Example #8
0
 public CommentRepository(NewsAnalyzerContext context) : base(context)
 {
 }
Example #9
0
 public GetUserByEmailQueryHandler(NewsAnalyzerContext dbContext, IMapper mapper)
 {
     _mapper    = mapper;
     _dbContext = dbContext;
 }
Example #10
0
 protected Repository(NewsAnalyzerContext db)
 {
     Db    = db;
     Table = Db.Set <T>();
 }
 public SetNewsRateCommandHandler(NewsAnalyzerContext dbContext)
 {
     _dbContext = dbContext;
 }
Example #12
0
 public RoleRepository(NewsAnalyzerContext context) : base(context)
 {
 }
Example #13
0
 public GetUserByRefreshTokenQueryHandler(NewsAnalyzerContext dbContext, IMapper mapper)
 {
     _mapper    = mapper;
     _dbContext = dbContext;
 }
Example #14
0
 public AddCommentCommandHandler(NewsAnalyzerContext dbContext)
 {
     _dbContext = dbContext;
 }
 public UpdateCurrentRefreshTokensCommandHandler(NewsAnalyzerContext dbContext, IMapper mapper)
 {
     _dbContext = dbContext;
     _mapper    = mapper;
 }
Example #16
0
 public NewsRepository(NewsAnalyzerContext context, IMapper mapper) : base(context)
 {
     _context = context;
     _mapper  = mapper;
 }
Example #17
0
 public GetRolesQueryHandler(NewsAnalyzerContext dbContext, IMapper mapper)
 {
     _dbContext = dbContext;
     _mapper    = mapper;
 }
 public GetTopNNotRatedNewsQueryHadler(NewsAnalyzerContext dbContext, IMapper mapper)
 {
     _dbContext = dbContext;
     _mapper    = mapper;
 }
 public GetNewsListQueryHandler(NewsAnalyzerContext dbContext, IMapper mapper, IConfiguration configuration)
 {
     _dbContext     = dbContext;
     _mapper        = mapper;
     _configuration = configuration;
 }
Example #20
0
 public UserRepository(NewsAnalyzerContext context) : base(context)
 {
     _context = context;
 }
 public GetRssSourceByIdQueryHadler(NewsAnalyzerContext context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }