public LoadExistingIndicesCommand(WorkloadAnalysisContext context, IIndicesRepository indicesRepository, IRelationsRepository relationsRepository,
                                   IRelationAttributesRepository attributesRepository)
 {
     this.context              = context;
     this.indicesRepository    = indicesRepository;
     this.relationsRepository  = relationsRepository;
     this.attributesRepository = attributesRepository;
 }
Пример #2
0
 public UpdateResearcherHandler(IUnitOfWork unitOfWork)
 {
     if (unitOfWork == null)
     {
         throw new ArgumentNullException();
     }
     this._unitOfWork           = unitOfWork;
     this._researcherRepository = this._unitOfWork.ResearcherRepository;
     this._relationsRepository  = this._unitOfWork.RelationsRepository;
 }
Пример #3
0
 public CreateProjectHandler(IUnitOfWork unitOfWork)
 {
     if (unitOfWork == null)
     {
         throw new ArgumentNullException(nameof(unitOfWork));
     }
     this._unitOfWork          = unitOfWork;
     this._projectRepository   = this._unitOfWork.ProjectRepository;
     this._relationsRepository = this._unitOfWork.RelationsRepository;
 }
        public CreateOrganisationHandler(IUnitOfWork unitOfWork)
        {
            if (unitOfWork == null)
            {
                throw new ArgumentNullException(nameof(unitOfWork));
            }

            this._unitOfWork             = unitOfWork;
            this._organisationRepository = this._unitOfWork.OrganisationRepository;
            this._relationsRepository    = this._unitOfWork.RelationsRepository;
        }
Пример #5
0
 private void resetRepositories()
 {
     this._userRepository         = null;
     this._categoryRepository     = null;
     this._organisationRepository = null;
     this._projectRepository      = null;
     this._relationsRepository    = null;
     this._researcherRepository   = null;
     this._activityRepository     = null;
     this._titleRepository        = null;
 }
 public WorkloadRelationsData(string databaseName, IRelationsRepository relationsRepository, IRelationAttributesRepository attributesRepository,
                              HashSet <uint> allRelationIdsFromStatements, IDictionary <uint, uint> evaluationReplacements)
 {
     this.databaseName         = databaseName;
     this.relationsRepository  = relationsRepository;
     this.attributesRepository = attributesRepository;
     foreach (var relationId in allRelationIdsFromStatements)
     {
         var relation = GetRelation(relationId);
     }
     foreach (var kv in evaluationReplacements)
     {
         var sourceId       = kv.Key;
         var targetId       = kv.Value;
         var sourceRelation = GetRelation(sourceId);
         var targetRelation = GetRelation(targetId);
         this.evaluationReplacements.Add(sourceId, targetRelation);
     }
 }
Пример #7
0
 public LoadWorkloadRelationsDataCommand(WorkloadAnalysisContext context, IRelationsRepository relationsRepository, IRelationAttributesRepository attributesRepository)
 {
     this.context              = context;
     this.relationsRepository  = relationsRepository;
     this.attributesRepository = attributesRepository;
 }