public MainWindow()
        {
            InitializeComponent();
            DataContext = this;

            heatSupplierRepository = new HeatSupplierRepository(db);
            buildingRepository = new BuildingRepository(db);
            reportRepository = new ReportRepository(db);
            normativeCalculationRepository = new NormativeCalculationRepository(db);
            thermometerReadingRepository = new ThermometerReadingRepository(db);
            contractConsumprionRepository = new ContractComsumptionRepository(db);
            clearingRepository = new ClearingRepository(db);
            variablesRepository = new BuildingMonthVariablesRepository(db);

            heatSupplierViewModel = new HeatSupplierViewModel(heatSupplierRepository);
            buildingViewModel = new BuildingViewModel(buildingRepository);
            createReportViewModel = new CreateReportViewModel(reportRepository);
            normativeAndProjectModel = new NormativeAndProjectModel(normativeCalculationRepository, new StandartCalculator(),
                                                               contractConsumprionRepository, new ContractCalculator(),
                                                               variablesRepository);
            //normativeCalculationViewModel = new NormativeCalculationViewModel(normativeCalculationRepository, new StandartCalculator());
            thermometerReadingViewModel = new ThermometersReaderViewModel(thermometerReadingRepository);
            contractConsumptionViewModel = new ContractConsumptionViewModel(contractConsumprionRepository, new ContractCalculator());

            clearinViewModel = new ClearingViewModel(clearingRepository, new TotalCalculation());

            _reportViewer.Load += ReportViewerLoad;
        }
 public ReportLogic(IUnitOfWork unit, IReportRepository repo, IActivityRepository a, IAccountRepository ac)
 {
     this.Unit = unit;
     this.Repo = repo;
     this.actRepo = a;
     this.aRepo = ac;
 }
 public TileService(ITileRepository tileRepository, 
    AppActs.Repository.Interface.IApplicationRepository applicationRepository, IReportRepository reportRepository)
 {
     this.tileRepository = tileRepository;
     this.applicationRepository = applicationRepository;
     this.reportRepository = reportRepository;
 }
 public ReportService(IReportRepository reportRepository, IReportGroupRoleRepository reportGroupRoleRepository,
     IReportGroupRepository reportGroupRepository)
 {
     this._reportRepository = reportRepository;
     this._reportGroupRoleRepository = reportGroupRoleRepository;
     this._reportGroupRepository = reportGroupRepository;
 }
 public CreateReportViewModel(IReportRepository repository)
 {
     StartDate = DateTime.Now;
     EndDate = DateTime.Now;
     view = new CreateReportView(){DataContext = this};
     db = repository;
     HeatSuppliers = new ObservableCollection<HeatSupplier>(repository.GetHeatSuppliers());
     DateTimeIntervals = new ObservableCollection<DateTimeInterval>(repository.GetDateTimeIntervals());
 }
 public ReportService(IDataRepository dataRepository, AppActs.Client.Repository.Interface.IApplicationRepository applicationRepository, 
     AppActs.Client.Repository.Interface.IPlatformRepository platformRepository, 
     IReportRepository reportRepository)
 {
     this.dataRepository = dataRepository;
     this.applicationRepository = applicationRepository;
     this.platformRepository = platformRepository;
     this.reportRepository = reportRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportRepositoryTests"/> class.
 /// </summary>
 public ReportRepositoryTests()
 {
     this.httpClientHelper = new Mock<IHttpClientHelper>();
     Business.Dependencies.Register();
     DIContainer.Instance.RegisterInstance<IHttpClientHelper>(this.httpClientHelper.Object);
     DIContainer.Instance.Resolve<IComponentSettingsEntities>().AuthorizationServiceBaseAddress = "http://qcweb03/GangwayAdminService/";
     DIContainer.Instance.RegisterType<IComponentSettingsClient, ComponentSettingsClient>();
     DIContainer.Instance.RegisterType<IComponentSettingsClient, ComponentSettingsClient>();
     this.reportRepository = DIContainer.Instance.Resolve<IReportRepository>();
 }
Exemple #8
0
 public ReportService(IUnitOfWork unitOfWork, IReportRepository reportRepository)
 {
     this._unitOfWork       = unitOfWork;
     this._reportRepository = reportRepository;
 }
 public ReportController(IReportRepository repository)
 {
     _repository = repository;
 }
Exemple #10
0
 public GetOrganizationReportsHandler(IReportRepository repository)
 {
     _repository = repository;
 }
Exemple #11
0
 public ReportService(IReportRepository reportRepository)
 {
     _reportRepository = reportRepository;
 }
 public ReportController(IReportRepository reportRepository)
 {
     if (reportRepository == null) throw new ArgumentNullException(nameof(reportRepository));
     _reportRepository = reportRepository;
 }
Exemple #13
0
 public UpdateReportCommandHandler(IReportRepository reportRepository)
 {
     _reportRepository = reportRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportManager" /> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 public ReportManager(IReportRepository repository)
 {
     this.reportRepository = repository;
 }
 public ReportsController()
 {
     reportRepository = new ReportRepository();
     userRepository   = new UserRepository();
 }
Exemple #16
0
 public HomeController(IReportRepository reportRepository)
 {
     this.reportRepository = reportRepository;
 }
 public ReportLogic(IConfiguration configuration)
 {
     _configuration   = configuration;
     reportRepository = new ReportRepository(_configuration);
 }
Exemple #18
0
 public GetReportsWihtConditionsQueryHandler(IReportRepository reportRepository)
 {
     _reportRepository = reportRepository;
 }
Exemple #19
0
 public EditReportService(IReportRepository repository_report)
 {
     _reportRepository = repository_report;
 }
Exemple #20
0
 public EstimateService(IReportRepository reportRepository, ITaxRateProvider taxRateProvider,
                        IOAuthService oAuthService, IQBApi qb)
     : base(reportRepository, taxRateProvider, oAuthService, qb, "Estimate")
 {
 }
 public ReportService(IReportRepository reportsRepository, ICategoryRepository categoryRepository, IUnitOfWork unitOfWork)
 {
     this.reportsRepository = reportsRepository;
     this.categoryRepository = categoryRepository;
     this.unitOfWork = unitOfWork;
 }
 public void SetUp()
 {
     _mocks = new MockRepository();
     _repository = _mocks.StrictMock<IReportRepository>();
     _controller = new ReportController(_repository);
 }
Exemple #23
0
 public ReportService(IReportRepository <ApplicationCount> repositoryApplicationCount, IReportRepository <AssignmentGroupCount> repositorAssignmentGroupCount, IReportRepository <BusinessLineCount> repositoryPrimaryBusinessLineCount, IReportRepository <PersonCount> repositoryPersonCount, IReportRepository <SummaryCounters> repositorySummaryCount)
 {
     this.repositoryApplicationCount         = repositoryApplicationCount;
     this.repositorAssignmentGroupCount      = repositorAssignmentGroupCount;
     this.repositoryPrimaryBusinessLineCount = repositoryPrimaryBusinessLineCount;
     this.repositoryPersonCount  = repositoryPersonCount;
     this.repositorySummaryCount = repositorySummaryCount;
 }
Exemple #24
0
 public ReportService(IReportRepository reportRepo)
 {
     _reportRepo = reportRepo;
 }
Exemple #25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportFactory"/> class.
 /// </summary>
 /// <param name="reportRepository">The report repository.</param>
 public ReportFactory( IReportRepository reportRepository )
 {
     _reportRepository = reportRepository;
 }
Exemple #26
0
 public CreateReportHandler(IReportRepository repository, IReportUniqueTitleChecker checker)
 {
     _repository = repository;
     _checker    = checker;
 }
Exemple #27
0
 public SummaryReport(IReportRepository<SummaryReport> repository)
 {
     _repository = repository;
 }
Exemple #28
0
 public GetReportHandler(IReportRepository reportRepository, IMapper mapper)
 {
     _reportRepository = reportRepository;
     _mapper           = mapper;
 }
 public ReportController(IReportRepository r)
 {
     _repository = r;
 }
Exemple #30
0
 public ReportController(IReportRepository reportRepository, IHouseRepository houseRepository, ISensorDryRepository sensorDryRepository)
 {
     ReportRepository = reportRepository;
     HouseRepository = houseRepository;
     SensorDryRepository = sensorDryRepository;
 }
Exemple #31
0
 public ReportManager(IReportRepository reportrepository, IReportBuilder reportBuilder, HttpContextBase httpContext)
 {
     _reportRepository = reportrepository;
     _reportBuilder    = reportBuilder;
     _currentUserId    = httpContext.User.Identity.GetUserId();
 }
 public SqlServerRepository(IConnectionFactory connectionFactory,
                            IEnvironmentCheckRepository environmentCheckRepository, IReportRepository reportRepository,
                            IAnalyticsRepository analyticsRepository, IFileLatencyRepository fileLatencyRepository,
                            IResourceServerRepository resourceServerRepository,
                            IDeploymentRepository deploymentRepository,
                            IPerformanceSummaryRepository performanceSummaryRepository, IConfigurationRepository configurationRepository,
                            IPrimarySqlServerRepository primarySqlServerRepository, IServerRepository performanceServerRepository,
                            IAgentRepository agentRepository, ISampleHistoryRepository sampleHistoryRepository,
                            IBackfillRepository backfillRepository, IEventRepository eventRepository, ILogRepository logRepository,
                            IProcessControlRepository processControlRepository, IConfigurationAuditRepository configurationAuditRepository)
 {
     this.connectionFactory = connectionFactory;
     _dataRepositories.AddRange(new IDbRepository[]
     {
         ReportRepository             = reportRepository,
         EnvironmentCheckRepository   = environmentCheckRepository,
         AnalyticsRepository          = analyticsRepository,
         FileLatencyRepository        = fileLatencyRepository,
         PDBNotificationRepository    = new PDBNotificationRepository(this.connectionFactory),
         ResourceServerRepository     = resourceServerRepository,
         DeploymentRepository         = deploymentRepository,
         PerformanceSummaryRepository = performanceSummaryRepository,
         ConfigurationRepository      = configurationRepository,
         PrimarySqlServerRepository   = primarySqlServerRepository,
         PerformanceServerRepository  = performanceServerRepository,
         AgentRepository              = agentRepository,
         SampleHistoryRepository      = sampleHistoryRepository,
         BackfillRepository           = backfillRepository,
         EventRepository              = eventRepository,
         LogRepository                = logRepository,
         ProcessControlRepository     = processControlRepository,
         ConfigurationAuditRepository = configurationAuditRepository
     });
 }
 public FindAllPoliciesHandler(IReportRepository reportRepository)
 {
     _reportRepository = reportRepository ?? throw new ArgumentNullException(nameof(reportRepository));
 }
Exemple #34
0
 public AddReportCommnadHandler(IReportRepository reportRepository, IDailyReportRepository dailyReportRepository)
 {
     _reportRepository      = reportRepository;
     _dailyReportRepository = dailyReportRepository;
 }
 public PrivilegeController(IPrivilegeRepository priRepo, ICustomerRepository cusRepo, IReportRepository rptRepo, ChFrontContext context, IOptions <SystemConf> conf, ILogger <PrivilegeController> logger, IOptions <TIPMobile> _mobile, IOptions <Smtp> smtp, IOptions <IIA> _iia, ILoginServices loginServices) : base(context, logger, _mobile, _iia, smtp, loginServices, conf, cusRepo, rptRepo)
 {
     this._context       = context;
     this._mobile        = _mobile.Value;
     this._logger        = logger;
     this._conf          = conf.Value;
     this._smtp          = smtp.Value;
     this._loginServices = loginServices;
     this._rptRepo       = rptRepo;
     this._cusRepo       = cusRepo;
     this._priRepo       = priRepo;
 }
Exemple #36
0
 public ReportService(IReportRepository reportRepository, string filePath)
 {
     _reportRepository = reportRepository;
     _filePath = filePath;
 }
Exemple #37
0
 public RemoveReportCommandHandler(IReportRepository reportRepository)
 {
     _reportRepository = reportRepository;
 }
 public ReportController(IReportRepository reportRepository, ICustomerRepository customerRepository, IUserRepository userRepository)
 {
     this.repository = reportRepository;
     this.customerRepo = customerRepository;
     this.userRepo = userRepository;
 }
Exemple #39
0
 public ReportService(IReportRepository reportRepository)
 {
     _reportRepository = reportRepository;
 }
        public override void Given()
        {
            base.Given();

            TheDatabase = ReportViewerSpecifications
                .MockTheReportRepository()
                .ToReturnReport(TheReportId, TheReportName);
        }
Exemple #41
0
 public PrepareReportHandler(IReportRepository reportRepository)
 {
     _reportRepository = reportRepository;
 }
 public ReportProvider(IReportRepository repository)
 {
     Repository = repository;
     CreateReportMap();
 }
Exemple #43
0
 public ReportController(IReportRepository reportRepository, ICapitalCallRepository capitalCallRepository)
 {
     ReportRepository = reportRepository;
     CapitalCallRepository = capitalCallRepository;
 }
Exemple #44
0
 public ReportService(IAreaRepository areaRepository, IReportRepository reportRepository)
 {
     _areaRepository   = areaRepository;
     _reportRepository = reportRepository;
 }
 public ReportsController(IModuleRepository moduleRepository, IReportRepository reportRepository)
 {
     this.moduleRepository = moduleRepository;
     this.reportRepository = reportRepository;
 }
 public InvoiceService(IReportRepository reportRepository, ITaxRepository repository, IOAuthService oAuthService) : base(reportRepository, repository, oAuthService, "Invoice")
 {
 }
 public static ReportService InitializeReportService(IReportRepository reportRepository, string filePath)
 {
     return new ReportService(reportRepository, filePath);
 }
Exemple #48
0
 public UnitOfWork()
 {
     _taskRepository     = new TaskRepository(this);
     _reportRepository   = new ReportRepository(this);
     _employeeRepository = new EmployeeRepository(this);
 }
Exemple #49
0
 public TestController(IReportRepository reportRepository, IMapper mapper)
 {
     this.reportRepository = reportRepository;
     this.mapper           = mapper;
 }
 public EstimateService(IReportRepository reportRepository, ITaxRepository repository, IOAuthService oAuthService) : base(reportRepository, repository, oAuthService, "Estimate")
 {
 }
		public ReportsController(IReportRepository<DocumentOnControl> rep)
		{
			_rep = rep;
		}
 public ReportController(ILogger <ReportController> logger, IReportRepository reportRepository)
 {
     _logger           = logger;
     _reportRepository = reportRepository;
 }
 public ReportController()
 {
   ReportRepository = dataProvider.ReportRepository;
 }
Exemple #54
0
 public GenerateReportApiController(IReportRepository reportRepository)
 {
     _reportRepository = reportRepository;
 }
Exemple #55
0
 public ReportController()
 {
     reportRepo = new ReportRepository();
 }
Exemple #56
0
 public ReportsModel(IReportRepository reportRepository)
 {
     _reportRepository = reportRepository;
 }
 public ReportController(IReportRepository paramrepository)
 {
     repository = paramrepository;
 }
Exemple #58
0
 public ReportController(IScenarioRepository repository)
 {
     scenarioRepository = repository;
     strategyRepository = new ArchitecturalStrategyRepository();
     reportRepository = new ReportRepository();
 }