Example #1
0
        public void CreateTestAction(IWQDefaultValueProvider wqDefaultValueProvider)
        {
            grandActionData          = new Hatfield.EnviroData.Core.Action();
            grandActionData.ActionID = 3;

            childActionData = new Hatfield.EnviroData.Core.Action();
            childActionData.RelatedActions = new List <RelatedAction>();
            childActionData.ActionID       = 2;

            rootActionData = new Hatfield.EnviroData.Core.Action();
            rootActionData.RelatedActions = new List <RelatedAction>();
            rootActionData.ActionID       = 1;

            var grandChildRelation = new RelatedAction();

            grandChildRelation.CV_RelationshipType = new CV_RelationshipType {
                Name = wqDefaultValueProvider.ActionRelationshipTypeSubVersion
            };
            grandChildRelation.Action1 = grandActionData;
            childActionData.RelatedActions.Add(grandChildRelation);

            var childRelation = new RelatedAction();

            childRelation.CV_RelationshipType = new CV_RelationshipType
            {
                Name = wqDefaultValueProvider.ActionRelationshipTypeSubVersion
            };
            childRelation.Action1 = childActionData;
            rootActionData.RelatedActions.Add(childRelation);
        }
Example #2
0
 public StationQueryAPIController(IWQDefaultValueProvider wqDefaultValueProvider, ISiteRepository siteRepository, IWQVariableRepository variableRepository, IWQDataRepository wqDataRepository)
 {
     _wqDefaultValueProvider = wqDefaultValueProvider;
     _wqDataRepository       = wqDataRepository;
     _siteRepository         = siteRepository;
     _variableRepository     = variableRepository;
 }
 public ODM2MapperBase(ODM2DuplicateChecker duplicateChecker, IWQDefaultValueProvider WQDefaultValueProvider, WayToHandleNewData wayToHandleNewData, List <IResult> iResults)
 {
     _iResults               = iResults;
     _duplicateChecker       = duplicateChecker;
     _WQDefaultValueProvider = WQDefaultValueProvider;
     _wayToHandleNewData     = wayToHandleNewData;
 }
 public StationQueryAPIController(IWQDefaultValueProvider wqDefaultValueProvider, ISiteRepository siteRepository, IWQVariableRepository variableRepository, IWQDataRepository wqDataRepository)
 {
     _wqDefaultValueProvider = wqDefaultValueProvider;
     _wqDataRepository = wqDataRepository;
     _siteRepository = siteRepository;
     _variableRepository = variableRepository;
 }
        public void CreateTestAction(IWQDefaultValueProvider wqDefaultValueProvider)
        {

            grandActionData = new Hatfield.EnviroData.Core.Action();
            grandActionData.ActionID = 3;

            childActionData = new Hatfield.EnviroData.Core.Action();
            childActionData.RelatedActions = new List<RelatedAction>();
            childActionData.ActionID = 2;
                        
            rootActionData = new Hatfield.EnviroData.Core.Action();
            rootActionData.RelatedActions = new List<RelatedAction>();
            rootActionData.ActionID = 1;

            var grandChildRelation = new RelatedAction();
            grandChildRelation.CV_RelationshipType = new CV_RelationshipType { 
                Name = wqDefaultValueProvider.ActionRelationshipTypeSubVersion
            };
            grandChildRelation.Action1 = grandActionData;
            childActionData.RelatedActions.Add(grandChildRelation);

            var childRelation = new RelatedAction();
            childRelation.CV_RelationshipType = new CV_RelationshipType
            {
                Name = wqDefaultValueProvider.ActionRelationshipTypeSubVersion
            };
            childRelation.Action1 = childActionData;
            rootActionData.RelatedActions.Add(childRelation);            
        }
        public ESDATChemistryMapperFactory(ODM2DuplicateChecker duplicateChecker, IWQDefaultValueProvider WQDefaultValueProvider, WayToHandleNewData wayToHandleNewData, List<IResult> results)
        {
            this.WQDefaultValueProvider = WQDefaultValueProvider;

            ActionMapper = new ChemistryActionMapper(duplicateChecker, this, WQDefaultValueProvider, wayToHandleNewData, results);
            ActionByMapper = new ActionByMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);

            AffiliationMapper = new AffiliationMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            AffiliationMapper.BackingStore = new List<Affiliation>();

            DatasetMapper = new DatasetMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            DatasetMapper.BackingStore = new List<Dataset>();

            DatasetsResultMapper = new DatasetsResultMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            FeatureActionMapper = new ChemistryFeatureActionMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            
            MeasurementResultMapper = new ChemistryMeasurementResultMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            MeasurementResultValueMapper = new ChemistryMeasurementResultValueMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);

            MethodMapper = new ChemistryMethodMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            MethodMapper.BackingStore = new List<Method>();

            OrganizationMapper = new ChemistryOrganizationMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            OrganizationMapper.BackingStore = new List<Organization>();

            PersonMapper = new PersonMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            PersonMapper.BackingStore = new List<Person>();

            ProcessingLevelMapper = new ProcessingLevelMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            ProcessingLevelMapper.BackingStore = new List<ProcessingLevel>();

            RelatedActionMapper = new RelatedActionMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            ResultMapper = new ChemistryResultMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);

            SamplingFeatureMapper = new ChemistrySamplingFeatureMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            SamplingFeatureMapper.BackingStore = new List<SamplingFeature>();

            UnitMapper = new ChemistryUnitMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            UnitMapper.BackingStore = new List<Unit>();

            VariableMapper = new ChemistryVariableMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            VariableMapper.BackingStore = new List<Variable>();

            ResultExtensionPropertyValueMapper = new ResultExtensionPropertyValueMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);

            ExtensionPropertyMapper = new ExtensionPropertyMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            ExtensionPropertyMapper.BackingStore = new List<ExtensionProperty>();
        }
Example #7
0
        public ESDATChemistryMapperFactory(ODM2DuplicateChecker duplicateChecker, IWQDefaultValueProvider WQDefaultValueProvider, WayToHandleNewData wayToHandleNewData, List <IResult> results)
        {
            this.WQDefaultValueProvider = WQDefaultValueProvider;

            ActionMapper   = new ChemistryActionMapper(duplicateChecker, this, WQDefaultValueProvider, wayToHandleNewData, results);
            ActionByMapper = new ActionByMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);

            AffiliationMapper = new AffiliationMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            AffiliationMapper.BackingStore = new List <Affiliation>();

            DatasetMapper = new DatasetMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            DatasetMapper.BackingStore = new List <Dataset>();

            DatasetsResultMapper = new DatasetsResultMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            FeatureActionMapper  = new ChemistryFeatureActionMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);

            MeasurementResultMapper      = new ChemistryMeasurementResultMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            MeasurementResultValueMapper = new ChemistryMeasurementResultValueMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);

            MethodMapper = new ChemistryMethodMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            MethodMapper.BackingStore = new List <Method>();

            OrganizationMapper = new ChemistryOrganizationMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            OrganizationMapper.BackingStore = new List <Organization>();

            PersonMapper = new PersonMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            PersonMapper.BackingStore = new List <Person>();

            ProcessingLevelMapper = new ProcessingLevelMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            ProcessingLevelMapper.BackingStore = new List <ProcessingLevel>();

            RelatedActionMapper = new RelatedActionMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            ResultMapper        = new ChemistryResultMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);

            SamplingFeatureMapper = new ChemistrySamplingFeatureMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            SamplingFeatureMapper.BackingStore = new List <SamplingFeature>();

            UnitMapper = new ChemistryUnitMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            UnitMapper.BackingStore = new List <Unit>();

            VariableMapper = new ChemistryVariableMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            VariableMapper.BackingStore = new List <Variable>();

            ResultExtensionPropertyValueMapper = new ResultExtensionPropertyValueMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);

            ExtensionPropertyMapper = new ExtensionPropertyMapper(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results);
            ExtensionPropertyMapper.BackingStore = new List <ExtensionProperty>();
        }
        public static IDataImporter BuildESDATDataImporter(IWQDefaultValueProvider wqDefaultValueProvider)
        {
            var simpleValueAssginer = new SimpleValueAssigner();

            var sampleDataImporter = BuildSampleDataFileImporter();
            var sampleFileChildObjectExtractConfiguration = new SampleFileChildObjectExtractConfiguration(sampleDataImporter, "SampleFileData", simpleValueAssginer);

            var chemistryDataImporter = BuildChemistryFileImporter();
            var chemistryFileChildObjectExtractConfiguration = new ChemistryFileChildObjectExtractConfiguration(chemistryDataImporter, "ChemistryData", simpleValueAssginer);

            var ESDATDataImporter = new ESDATDataImporter(ResultLevel.ERROR, wqDefaultValueProvider);

            AddXMLExtractConfigurationsToImporter(ESDATDataImporter);
            ESDATDataImporter.AddExtractConfiguration(sampleFileChildObjectExtractConfiguration);
            ESDATDataImporter.AddExtractConfiguration(chemistryFileChildObjectExtractConfiguration);

            return ESDATDataImporter;
        }
Example #9
0
        public static IDataImporter BuildESDATDataImporter(IWQDefaultValueProvider wqDefaultValueProvider)
        {
            var simpleValueAssginer = new SimpleValueAssigner();

            var sampleDataImporter = BuildSampleDataFileImporter();
            var sampleFileChildObjectExtractConfiguration = new SampleFileChildObjectExtractConfiguration(sampleDataImporter, "SampleFileData", simpleValueAssginer);

            var chemistryDataImporter = BuildChemistryFileImporter();
            var chemistryFileChildObjectExtractConfiguration = new ChemistryFileChildObjectExtractConfiguration(chemistryDataImporter, "ChemistryData", simpleValueAssginer);

            var ESDATDataImporter = new ESDATDataImporter(ResultLevel.ERROR, wqDefaultValueProvider);

            AddXMLExtractConfigurationsToImporter(ESDATDataImporter);
            ESDATDataImporter.AddExtractConfiguration(sampleFileChildObjectExtractConfiguration);
            ESDATDataImporter.AddExtractConfiguration(chemistryFileChildObjectExtractConfiguration);

            return(ESDATDataImporter);
        }
 public ESDATImportAPIController(IDbContext dbContext, IWQDefaultValueProvider wqDefaultValueProvider)
 {
     _dbContext = dbContext;
     _wqDefaultValueProvider = wqDefaultValueProvider;
 }
 public DataVersioningHelper(IWQDefaultValueProvider wqDefaultValueProvider)
 {
     _wqDefaultValueProvider = wqDefaultValueProvider;
 }
 public QualityAssuranceAPIController(IWQDataRepository wqDataRepository, IRepository <CV_RelationshipType> relationTypeRepository, IWQDefaultValueProvider wqDefaultValueProvider)
 {
     _wqDataRepository            = wqDataRepository;
     _relatedActionTypeRepository = relationTypeRepository;
     _wqDefaultValueProvider      = wqDefaultValueProvider;
 }
Example #13
0
 public ESDATImportAPIController(IDbContext dbContext, IWQDefaultValueProvider wqDefaultValueProvider)
 {
     _dbContext = dbContext;
     _wqDefaultValueProvider = wqDefaultValueProvider;
 }
 public AdminController(IWQDefaultValueProvider defaultValueProvider)
 {
     _defaultValueProvider = defaultValueProvider;
 }
 public ESDATDataImporter(ResultLevel thresholdLevel, IWQDefaultValueProvider wqDefaultValueProvider)
     : base(thresholdLevel)
 {
     _wqDefaultValueProvider = wqDefaultValueProvider;
 }
 public QAQCDataAPIController(IActionRepository actionRepository, IRepository <CV_RelationshipType> relationTypeRepository, IWQDefaultValueProvider wqDefaultValueProvider)
 {
     _actionRepository            = actionRepository;
     _relatedActionTypeRepository = relationTypeRepository;
     _wqDefaultValueProvider      = wqDefaultValueProvider;
 }
Example #17
0
 public DataVersioningHelper(IWQDefaultValueProvider wqDefaultValueProvider)
 {
     _wqDefaultValueProvider = wqDefaultValueProvider;
 }
 public ExtensionPropertyMapper(ODM2DuplicateChecker duplicateChecker, IWQDefaultValueProvider WQDefaultValueProvider, WayToHandleNewData wayToHandleNewData, List <IResult> results)
     : base(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results)
 {
 }
Example #19
0
 public ChemistryActionMapper(ODM2DuplicateChecker duplicateChecker, ESDATChemistryMapperFactory factory, IWQDefaultValueProvider WQDefaultValueProvider, WayToHandleNewData wayToHandleNewData, List <IResult> results)
     : base(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results)
 {
     _chemistryFactory = factory;
 }
 public QueryDataAPIController(IWQDataRepository wqDataRepository, IWQDefaultValueProvider wqDefaultValueProvider)
 {
     _wqDataRepository = wqDataRepository;
     _wqDefaultValueProvider = wqDefaultValueProvider;
 }
 public ProcessingLevelMapper(ODM2DuplicateChecker duplicateChecker, IWQDefaultValueProvider WQDefaultValueProvider, WayToHandleNewData wayToHandleNewData, List <IResult> results) : base(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results)
 {
 }
 public SampleCollectionActionMapper(ODM2DuplicateChecker duplicateChecker, ESDATSampleCollectionMapperFactory sampleCollectionFactory, IWQDefaultValueProvider WQDefaultValueProvider, ESDATChemistryMapperFactory chemistryFactory, WayToHandleNewData wayToHandleNewData, List <IResult> results)
     : base(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results)
 {
     _sampleCollectionFactory = sampleCollectionFactory;
     _chemistryFactory        = chemistryFactory;
 }
 public QAQCDataAPIController(IActionRepository actionRepository, IRepository<CV_RelationshipType> relationTypeRepository, IWQDefaultValueProvider wqDefaultValueProvider)
 {
     _actionRepository = actionRepository;
     _relatedActionTypeRepository = relationTypeRepository;
     _wqDefaultValueProvider = wqDefaultValueProvider;
 }
 public QualityAssuranceAPIController(IWQDataRepository wqDataRepository, IRepository<CV_RelationshipType> relationTypeRepository, IWQDefaultValueProvider wqDefaultValueProvider)
 {
     _wqDataRepository = wqDataRepository;
     _relatedActionTypeRepository = relationTypeRepository;
     _wqDefaultValueProvider = wqDefaultValueProvider;
 }
Example #25
0
 public SampleCollectionSamplingFeatureMapper(ODM2DuplicateChecker duplicateChecker, IWQDefaultValueProvider WQDefaultValueProvider, WayToHandleNewData wayToHandleNewData, List <IResult> results) : base(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results)
 {
 }
 public ChemistryMeasurementResultMapper(ODM2DuplicateChecker duplicateChecker, IWQDefaultValueProvider WQDefaultValueProvider, WayToHandleNewData wayToHandleNewData, List <IResult> results) : base(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results)
 {
 }
 public QueryDataAPIController(IWQDataRepository wqDataRepository, IWQDefaultValueProvider wqDefaultValueProvider)
 {
     _wqDataRepository       = wqDataRepository;
     _wqDefaultValueProvider = wqDefaultValueProvider;
 }
Example #28
0
 public RelatedActionMapperBase(ODM2DuplicateChecker duplicateChecker, IWQDefaultValueProvider WQDefaultValueProvider, WayToHandleNewData wayToHandleNewData, List <IResult> results)
     : base(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results)
 {
 }
 public ExtensionPropertyMapper(ODM2DuplicateChecker duplicateChecker, IWQDefaultValueProvider WQDefaultValueProvider, WayToHandleNewData wayToHandleNewData, List<IResult> results)
     : base(duplicateChecker, WQDefaultValueProvider, wayToHandleNewData, results)
 {
 }