Exemplo n.º 1
0
 public ReportDetailsQueryHandler(
     IReportQueryRepository reportRepository,
     IReporterQueryRepository reporterRepository)
 {
     this.reportRepository   = reportRepository;
     this.reporterRepository = reporterRepository;
 }
 public MineReportsQueryHandler(
     IReportQueryRepository reportRepository,
     IReporterQueryRepository reporterRepository,
     ICurrentUser currentUser)
     : base(reportRepository)
 {
     this.currentUser        = currentUser;
     this.reporterRepository = reporterRepository;
 }
Exemplo n.º 3
0
 public DeleteReportCommandHandler(
     ICurrentUser currentUser,
     IReportQueryRepository reportRepository,
     IReporterDomainRepository reporterRepository)
 {
     this.currentUser        = currentUser;
     this.reportRepository   = reportRepository;
     this.reporterRepository = reporterRepository;
 }
 public ChangeAprovelCommand(
     ICurrentUser currentUser,
     IReportQueryRepository reportRepository,
     IReporterDomainRepository reporterRepository)
 {
     this.currentUser        = currentUser;
     this.reportRepository   = reportRepository;
     this.reporterRepository = reporterRepository;
 }
Exemplo n.º 5
0
        public void OnGet()
        {
            transaction       = new TransactionScope();
            reportQueriesRepo = new SqlReportQueryRepository(connectionString);
            transaction.Dispose();

            topHeartRates    = reportQueriesRepo.RetrieveTopHeartRates();
            ratingsByWeather = reportQueriesRepo.RetrieveRatingsByWeather();
            sleepDurationCaloriesByRating      = reportQueriesRepo.RetrieveSleepDurationCaloriesByRating();
            heartRateAndDurationLessThan6Hours = reportQueriesRepo.RetrieveHeartRateAndDurationLessThan6Hours();
        }
 protected ReportsQueryHandler(IReportQueryRepository reportRepository)
 => this.reportRepository = reportRepository;
Exemplo n.º 7
0
 public EditReportCommandValidator(IReportQueryRepository reportRepository)
 => this.Include(new ReportCommandValidator <EditReportCommand>(reportRepository));
Exemplo n.º 8
0
 public ReportCommandValidator(IReportQueryRepository reportRepository)
 {
 }
 public SearchReportsQueryHandler(IReportQueryRepository reportRepository)
     : base(reportRepository)
 {
 }