Пример #1
0
 public EtlController(IHtmlExtractor htmlExtractor, IHtmlTransformer htmlTransformer, IHtmlLoader htmlLoader, ReviewsDbContext reviewsDbContext)
 {
     _htmlExtractor    = htmlExtractor;
     _htmlTransformer  = htmlTransformer;
     _htmlLoader       = htmlLoader;
     _reviewsDbContext = reviewsDbContext;
 }
Пример #2
0
 public SearchHelper()
 {
     _reviewsDb = new ReviewsDbContext();
     _reportsDb = new BugReportsDbContext();
     _blogDb    = new BlogDbContext();
     _results   = new List <SearchResult>();
 }
Пример #3
0
 public ReviewService(ReviewsDbContext db,
                      ICurrentUserService user,
                      IMapper mapper,
                      IBus publisher)
 {
     this.db        = db;
     this.user      = user;
     this.mapper    = mapper;
     this.publisher = publisher;
 }
Пример #4
0
 public AdminController()
 {
     ViewModel            = new AdminPanelViewModel();
     ViewModel.BugReports = new List <BugReport>();
     ViewModel.Reviews    = new List <Review>();
     ViewModel.BlogPosts  = new List <BlogPost>();
     ViewModel.Users      = new List <ApplicationUser>();
     _appDb        = new ApplicationDbContext();
     _blogDb       = new BlogDbContext();
     _bugReportsDb = new BugReportsDbContext();
     _reviewsDb    = new ReviewsDbContext();
 }
 public FeedbackController()
 {
     _reports = new BugReportsDbContext();
     _reviews = new ReviewsDbContext();
 }
Пример #6
0
 public HtmlLoader(ReviewsDbContext reviewsDbContext)
 {
     _reviewsDbContext = reviewsDbContext;
 }
 public ReviewsQueries(ReviewsDbContext db) => _db = db;
Пример #8
0
 public HomeController()
 {
     _blogDb       = new BlogDbContext();
     _bugReportsDb = new BugReportsDbContext();
     _reviewsDb    = new ReviewsDbContext();
 }