Example #1
0
 public StationQueryAPIController(IWQDefaultValueProvider wqDefaultValueProvider, ISiteRepository siteRepository, IWQVariableRepository variableRepository, IWQDataRepository wqDataRepository)
 {
     _wqDefaultValueProvider = wqDefaultValueProvider;
     _wqDataRepository       = wqDataRepository;
     _siteRepository         = siteRepository;
     _variableRepository     = variableRepository;
 }
 public StationQueryAPIController(IWQDefaultValueProvider wqDefaultValueProvider, ISiteRepository siteRepository, IWQVariableRepository variableRepository, IWQDataRepository wqDataRepository)
 {
     _wqDefaultValueProvider = wqDefaultValueProvider;
     _wqDataRepository = wqDataRepository;
     _siteRepository = siteRepository;
     _variableRepository = variableRepository;
 }
 public WaterQualityDataQualityChecker(
                                         DataQualityCheckingChainConfiguration chainConfiguration,
                                         IDataQualityCheckingToolFactory dataQualityCheckingToolFactory,
                                         IWQDataRepository wqDataRepository
                                      )
 {
     _chainConfiguration = chainConfiguration;
     _dataQualityCheckingToolFactory = dataQualityCheckingToolFactory;
     _wqDataRepository = wqDataRepository;
 }
 public GetAllWaterQualitySampleDataCriteria(IWQDataRepository wqDataRepository)
 {
     if (wqDataRepository == null)
     {
         throw new ArgumentNullException("Water quality data repository is null. GetAllWaterQualityDataCriteria initial fail.");
     }
     else
     {
         _wqDataRepository = wqDataRepository;
     }
 }
        private static DataQualityCheckingChainConfiguration ConfigureQualityCheckingChain(bool needCorrection,
                                                                                            IWQDataRepository wqDataRepository, 
                                                                                            string expectedString, 
                                                                                            bool isCaseSensitive, 
                                                                                            string correctionValue)
        {
            var chainConfiguration = new DataQualityCheckingChainConfiguration();

            chainConfiguration.NeedToCorrectData = needCorrection;
            chainConfiguration.DataFetchCriteria = new GetAllWaterQualitySampleDataCriteria(wqDataRepository);

            var sampleMatrixCheckingRuleConfiguration = new DataQualityCheckingToolConfiguration();
            sampleMatrixCheckingRuleConfiguration.DataQualityCheckingToolType = typeof(SampleMatrixTypeCheckingTool);
            sampleMatrixCheckingRuleConfiguration.DataQualityCheckingRule = new StringCompareCheckingRule(expectedString,
                                                                                                          isCaseSensitive,
                                                                                                          correctionValue
                                                                                                         );

            chainConfiguration.ToolsConfiguration = new List<DataQualityCheckingToolConfiguration> { sampleMatrixCheckingRuleConfiguration };

            return chainConfiguration;
        }
 public QualityAssuranceAPIController(IWQDataRepository wqDataRepository, IRepository<CV_RelationshipType> relationTypeRepository, IWQDefaultValueProvider wqDefaultValueProvider)
 {
     _wqDataRepository = wqDataRepository;
     _relatedActionTypeRepository = relationTypeRepository;
     _wqDefaultValueProvider = wqDefaultValueProvider;
 }
 public QualityAssuranceAPIController(IWQDataRepository wqDataRepository, IRepository <CV_RelationshipType> relationTypeRepository, IWQDefaultValueProvider wqDefaultValueProvider)
 {
     _wqDataRepository            = wqDataRepository;
     _relatedActionTypeRepository = relationTypeRepository;
     _wqDefaultValueProvider      = wqDefaultValueProvider;
 }
 public QueryDataAPIController(IWQDataRepository wqDataRepository, IWQDefaultValueProvider wqDefaultValueProvider)
 {
     _wqDataRepository = wqDataRepository;
     _wqDefaultValueProvider = wqDefaultValueProvider;
 }
 public QueryDataAPIController(IWQDataRepository wqDataRepository, IWQDefaultValueProvider wqDefaultValueProvider)
 {
     _wqDataRepository       = wqDataRepository;
     _wqDefaultValueProvider = wqDefaultValueProvider;
 }