Esempio n. 1
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="settings">設定</param>
        /// <param name="logger">ロガー</param>
        /// <param name="timeProvider">DateTimeの提供元</param>
        /// <param name="dtAlarmSmartPremonitorRepository">ディスクドライブ予兆監視アラーム定義リポジトリ</param>
        /// <param name="dtSmartAnalysisResultRepository">SMART解析判定結果リポジトリ</param>
        /// <param name="queueRepository">Queueリポジトリ</param>
        /// <param name="failureRepository">Failureストレージリポジトリ</param>
        public DiskDrivePremonitorService(
            UtilityAppSettings settings,
            ILogger <DiskDrivePremonitorService> logger,
            ITimeProvider timeProvider,
            IDtAlarmSmartPremonitorRepository dtAlarmSmartPremonitorRepository,
            IDtSmartAnalysisResultRepository dtSmartAnalysisResultRepository,
            IQueueRepository queueRepository,
            IFailureRepository failureRepository)
        {
            Assert.IfNull(settings);
            Assert.IfNull(logger);
            Assert.IfNull(timeProvider);
            Assert.IfNull(dtAlarmSmartPremonitorRepository);
            Assert.IfNull(dtSmartAnalysisResultRepository);
            Assert.IfNull(queueRepository);
            Assert.IfNull(failureRepository);

            _settings     = settings;
            _logger       = logger;
            _timeProvider = timeProvider;
            _dtAlarmSmartPremonitorRepository = dtAlarmSmartPremonitorRepository;
            _dtSmartAnalysisResultRepository  = dtSmartAnalysisResultRepository;
            _queueRepository   = queueRepository;
            _failureRepository = failureRepository;
        }
Esempio n. 2
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="settings">設定</param>
        /// <param name="logger">ロガー</param>
        /// <param name="timeProvider">DateTimeの提供元</param>
        /// <param name="dtAlmilogAnalysisResultRepository">アルミスロープログ解析判定結果リポジトリ</param>
        /// <param name="dtAlmilogAnalysisConfigRepository">アルミスロープログ解析設定リポジトリ</param>
        /// <param name="dtBloclogAnalysisConfigRepository">ムラログ解析設定リポジトリ</param>
        /// <param name="failureRepository">Failureストレージリポジトリ</param>
        public DipAlmiLogAnalyzerService(
            UtilityAppSettings settings,
            ILogger <DipAlmiLogAnalyzerService> logger,
            ITimeProvider timeProvider,
            IDtAlmilogAnalysisResultRepository dtAlmilogAnalysisResultRepository,
            IDtAlmilogAnalysisConfigRepository dtAlmilogAnalysisConfigRepository,
            IDtBloclogAnalysisConfigRepository dtBloclogAnalysisConfigRepository,
            IFailureRepository failureRepository)
        {
            Assert.IfNull(settings);
            Assert.IfNull(logger);
            Assert.IfNull(timeProvider);
            Assert.IfNull(dtAlmilogAnalysisResultRepository);
            Assert.IfNull(dtAlmilogAnalysisConfigRepository);
            Assert.IfNull(dtBloclogAnalysisConfigRepository);
            Assert.IfNull(failureRepository);

            _settings     = settings;
            _logger       = logger;
            _timeProvider = timeProvider;
            _dtAlmilogAnalysisResultRepository = dtAlmilogAnalysisResultRepository;
            _dtAlmilogAnalysisConfigRepository = dtAlmilogAnalysisConfigRepository;
            _dtBloclogAnalysisConfigRepository = dtBloclogAnalysisConfigRepository;
            _failureRepository = failureRepository;
        }
Esempio n. 3
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="settings">設定</param>
        /// <param name="logger">ロガー</param>
        /// <param name="timeProvider">DateTimeの提供元</param>
        /// <param name="dtAlarmRepository">アラームリポジトリ</param>
        /// <param name="dtEquipmentRepository">機器リポジトリ</param>
        /// <param name="dtAlarmConfigRepository">アラーム設定リポジトリ</param>
        /// <param name="queueRepository">Queueリポジトリ</param>
        /// <param name="failureRepository">Failureストレージリポジトリ</param>
        public AlarmRegisterService(
            OperationAppSettings settings,
            ILogger <AlarmRegisterService> logger,
            ITimeProvider timeProvider,
            IDtAlarmRepository dtAlarmRepository,
            IDtEquipmentRepository dtEquipmentRepository,
            IDtAlarmConfigRepository dtAlarmConfigRepository,
            IQueueRepository queueRepository,
            IFailureRepository failureRepository)
        {
            Assert.IfNull(settings);
            Assert.IfNull(logger);
            Assert.IfNull(timeProvider);
            Assert.IfNull(dtAlarmRepository);
            Assert.IfNull(dtEquipmentRepository);
            Assert.IfNull(dtAlarmConfigRepository);
            Assert.IfNull(queueRepository);
            Assert.IfNull(failureRepository);

            _settings                = settings;
            _logger                  = logger;
            _timeProvider            = timeProvider;
            _dtAlarmRepository       = dtAlarmRepository;
            _dtEquipmentRepository   = dtEquipmentRepository;
            _dtAlarmConfigRepository = dtAlarmConfigRepository;
            _queueRepository         = queueRepository;
            _failureRepository       = failureRepository;
        }
Esempio n. 4
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="settings">設定</param>
        /// <param name="logger">ロガー</param>
        /// <param name="dtDeviceRepository">IDtDeviceRepository</param>
        /// <param name="dtDeliveryGroupRepository">IDtDeliveryGroupRepository</param>
        /// <param name="dtPlusServiceBillLogRepository">IDtPlusServiceBillLogRepository</param>
        /// <param name="dtDxaBillLogRepository">IDtDxaBillLogRepository</param>
        /// <param name="dtDxaQcLogRepository">IDtDxaQcLogRepository</param>
        /// <param name="dtInstallResultRepository">IDtInstallResultRepository</param>
        /// <param name="dtSoftVersionRepository">IDtSoftVersionRepository</param>
        /// <param name="dtDirectoryUsageRepository">IDtDirectoryUsageRepository</param>
        /// <param name="dtDiskDriveRepository">IDtDiskDriveRepository</param>
        /// <param name="dtEquipmentUsageRepository">IDtEquipmentUsageRepository</param>
        /// <param name="dtInventoryRepository">IDtInventoryRepository</param>
        /// <param name="dtDriveRepository">IDtDriveRepository</param>
        /// <param name="dtParentChildConnectRepository">IDtParentChildConnectRepository</param>
        /// <param name="dtRequestDeviceRepository">IRequestDeviceRepository</param>
        /// <param name="dtScriptConfigRepository">IDtScriptConfigRepository</param>
        /// <param name="dtStorageConfigRepository">IDtStorageConfigRepository</param>
        /// <param name="failureRepository">IFailureRepository</param>
        /// <param name="timeProvider">ITimeProvider</param>
        public DispatchServiceMock(
            AppSettings settings,
            ILogger <DispatchService> logger,
            IDtDeviceRepository dtDeviceRepository,
            IDtDeliveryGroupRepository dtDeliveryGroupRepository,
            IDtPlusServiceBillLogRepository dtPlusServiceBillLogRepository,
            IDtDxaBillLogRepository dtDxaBillLogRepository,
            IDtDxaQcLogRepository dtDxaQcLogRepository,
            IDtInstallResultRepository dtInstallResultRepository,
            IDtSoftVersionRepository dtSoftVersionRepository,
            IDtDirectoryUsageRepository dtDirectoryUsageRepository,
            IDtDiskDriveRepository dtDiskDriveRepository,
            IDtEquipmentUsageRepository dtEquipmentUsageRepository,
            IDtInventoryRepository dtInventoryRepository,
            IDtDriveRepository dtDriveRepository,
            IDtParentChildConnectRepository dtParentChildConnectRepository,
            IRequestDeviceRepository dtRequestDeviceRepository,
            IDtScriptConfigRepository dtScriptConfigRepository,
            IDtStorageConfigRepository dtStorageConfigRepository,
            IFailureRepository failureRepository,
            ITimeProvider timeProvider)
        {
            _settings = settings;
            _logger   = logger;

            _dtDeviceRepository             = dtDeviceRepository;
            _dtDeliveryGroupRepository      = dtDeliveryGroupRepository;
            _dtPlusServiceBillLogRepository = dtPlusServiceBillLogRepository;
            _dtDxaBillLogRepository         = dtDxaBillLogRepository;
            _dtDtDxaQcLogRepository         = dtDxaQcLogRepository;
            _dtInstallResultRepository      = dtInstallResultRepository;
            _dtSoftVersionRepository        = dtSoftVersionRepository;
            _dtDirectoryUsageRepository     = dtDirectoryUsageRepository;
            _dtDiskDriveRepository          = dtDiskDriveRepository;
            _dtEquipmentUsageRepository     = dtEquipmentUsageRepository;
            _dtInventoryRepository          = dtInventoryRepository;
            _dtDriveRepository = dtDriveRepository;
            _dtParentChildConnectRepository = dtParentChildConnectRepository;
            _dtRequestDeviceRepository      = dtRequestDeviceRepository;
            _dtScriptConfigRepository       = dtScriptConfigRepository;
            _dtStorageConfigRepository      = dtStorageConfigRepository;
            _failureRepository = failureRepository;

            _timeProvider = timeProvider;
        }
Esempio n. 5
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="settings">設定</param>
        /// <param name="logger">ロガー</param>
        /// <param name="timeProvider">DateTimeの提供元</param>
        /// <param name="mailRepository">メールリポジトリ</param>
        /// <param name="failureRepository">Failureストレージリポジトリ</param>
        public MailSenderService(
            OperationAppSettings settings,
            ILogger <MailSenderService> logger,
            ITimeProvider timeProvider,
            IMailRepository mailRepository,
            IFailureRepository failureRepository)
        {
            Assert.IfNull(settings);
            Assert.IfNull(logger);
            Assert.IfNull(timeProvider);
            Assert.IfNull(mailRepository);
            Assert.IfNull(failureRepository);

            _settings          = settings;
            _logger            = logger;
            _timeProvider      = timeProvider;
            _mailRepository    = mailRepository;
            _failureRepository = failureRepository;
        }
Esempio n. 6
0
        /// <summary>
        /// DIを実行する
        /// </summary>
        /// <param name="appSettings">アプリケーション設定を上書きする場合は指定する</param>
        private void DependencyInjection(Dictionary <string, string> appSettings = null)
        {
            TestDiProviderBuilder builder = new TestDiProviderBuilder();

            builder.ServiceCollection.AddTransient <FailureBlob>();

            if (appSettings != null)
            {
                foreach (KeyValuePair <string, string> pair in appSettings)
                {
                    builder.AddConfigure(pair.Key, pair.Value);
                }
            }

            builder.ServiceCollection.AddSingleton <ITimeProvider>(UnitTestHelper.CreateTimeProvider(new DateTime(2030, 1, 1)));
            ServiceProvider provider = builder.Build();

            failureBlob = provider.GetService <FailureBlob>();
            target      = provider.GetService <IFailureRepository>();
        }
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="settings">設定</param>
        /// <param name="logger">ロガー</param>
        /// <param name="timeProvider">DateTimeの提供元</param>
        /// <param name="dtAlarmDefTemperatureSensorLogMonitorRepository">温度センサログ監視アラーム定義リポジトリ</param>
        /// <param name="queueRepository">Queueリポジトリ</param>
        /// <param name="failureRepository">Failureストレージリポジトリ</param>
        public TemperatureSensorMonitorService(
            UtilityAppSettings settings,
            ILogger <TemperatureSensorMonitorService> logger,
            ITimeProvider timeProvider,
            IDtAlarmDefTemperatureSensorLogMonitorRepository dtAlarmDefTemperatureSensorLogMonitorRepository,
            IQueueRepository queueRepository,
            IFailureRepository failureRepository)
        {
            Assert.IfNull(settings);
            Assert.IfNull(logger);
            Assert.IfNull(timeProvider);
            Assert.IfNull(dtAlarmDefTemperatureSensorLogMonitorRepository);
            Assert.IfNull(queueRepository);
            Assert.IfNull(failureRepository);

            _settings     = settings;
            _logger       = logger;
            _timeProvider = timeProvider;
            _dtAlarmDefTemperatureSensorLogMonitorRepository = dtAlarmDefTemperatureSensorLogMonitorRepository;
            _queueRepository   = queueRepository;
            _failureRepository = failureRepository;
        }
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="settings">設定</param>
        /// <param name="logger">ロガー</param>
        /// <param name="timeProvider">DateTimeの提供元</param>
        /// <param name="dtAlarmDefPanelDefectPremonitorRepository">パネル欠陥予兆監視アラーム定義リポジトリ</param>
        /// <param name="queueRepository">Queueリポジトリ</param>
        /// <param name="failureRepository">Failureストレージリポジトリ</param>
        public PanelDefectPremonitorService(
            UtilityAppSettings settings,
            ILogger <PanelDefectPremonitorService> logger,
            ITimeProvider timeProvider,
            IDtAlarmDefPanelDefectPremonitorRepository dtAlarmDefPanelDefectPremonitorRepository,
            IQueueRepository queueRepository,
            IFailureRepository failureRepository)
        {
            Assert.IfNull(settings);
            Assert.IfNull(logger);
            Assert.IfNull(timeProvider);
            Assert.IfNull(dtAlarmDefPanelDefectPremonitorRepository);
            Assert.IfNull(queueRepository);
            Assert.IfNull(failureRepository);

            _settings     = settings;
            _logger       = logger;
            _timeProvider = timeProvider;
            _dtAlarmDefPanelDefectPremonitorRepository = dtAlarmDefPanelDefectPremonitorRepository;
            _queueRepository   = queueRepository;
            _failureRepository = failureRepository;
        }
Esempio n. 9
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="settings">設定</param>
        /// <param name="logger">ロガー</param>
        /// <param name="timeProvider">DateTimeの提供元</param>
        /// <param name="dtAlarmDefTubeCurrentDeteriorationPremonitorRepository">管電流経時劣化予兆監視アラーム定義リポジトリ</param>
        /// <param name="queueRepository">Queueリポジトリ</param>
        /// <param name="failureRepository">Failureストレージリポジトリ</param>
        public TubeCurrentDeteriorationPremonitorService(
            UtilityAppSettings settings,
            ILogger <TubeCurrentDeteriorationPremonitorService> logger,
            ITimeProvider timeProvider,
            IDtAlarmDefTubeCurrentDeteriorationPremonitorRepository dtAlarmDefTubeCurrentDeteriorationPremonitorRepository,
            IQueueRepository queueRepository,
            IFailureRepository failureRepository)
        {
            Assert.IfNull(settings);
            Assert.IfNull(logger);
            Assert.IfNull(timeProvider);
            Assert.IfNull(dtAlarmDefTubeCurrentDeteriorationPremonitorRepository);
            Assert.IfNull(queueRepository);
            Assert.IfNull(failureRepository);

            _settings     = settings;
            _logger       = logger;
            _timeProvider = timeProvider;
            _dtAlarmDefTubeCurrentDeteriorationPremonitorRepository = dtAlarmDefTubeCurrentDeteriorationPremonitorRepository;
            _queueRepository   = queueRepository;
            _failureRepository = failureRepository;
        }
Esempio n. 10
0
 public FailuresController(IFailureRepository failureRepository)
 {
     _failureRepository = failureRepository;
 }