public GraphEntity(IGraphRepository repository, bool directed)
 {
     if (repository == null)
         throw new Exception("Repository hasn't been loaded.");
     _repository = repository;
     GraphData = directed ? _repository.GetDirectedGraph() : _repository.GetUndirectedGraph();
     AddRelations();
 }
Example #2
0
 public ExerciseSessionRepository(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
Example #3
0
 public GraphService(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
Example #4
0
 public RouteService(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
 public GetGraphUseCase(IGraphRepository repo)
 {
     this.repo = repo;
 }
 public GraphFactory(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the UserController
 /// </summary>
 /// <param name="graphRepository">graph service.</param>
 /// <param name="userManager"></param>
 public UserController(IGraphRepository graphRepository, IUserManagerService userManager)
 {
     _graphRepositoty = graphRepository;
     _userManager     = userManager;
 }
 public PathwayRepository(IGraphRepository graphRepository, IPathwaysConfigurationManager pathwaysConfigurationManager)
 {
     _graphRepository = graphRepository;
     _pathwaysConfigurationManager = pathwaysConfigurationManager;
 }
Example #9
0
 public GrowWattFactory(IGraphRepository graph,IGrowWattRepository growWatt, IMiscRepository misc) {
     _graph = graph;
     _growWatt = growWatt;
     _misc = misc;
 }
 public GraphManagementService(IGraphManagementRepository graphManagementRepository, IGraphRepository graphRepository,
                               IMetadataGraphConfigurationService graphConfiguration, IAuditTrailLogService auditTrailLogService, IAmazonS3Service awsS3Service,
                               INeptuneLoaderConnector neptuneLoader, IOptionsMonitor <AmazonWebServicesOptions> awsConfig)
 {
     _graphManagementRepo       = graphManagementRepository;
     _graphConfigurationService = graphConfiguration;
     _auditTrailLogService      = auditTrailLogService;
     _graphRepo     = graphRepository;
     _awsS3Service  = awsS3Service;
     _neptuneLoader = neptuneLoader;
     _awsConfig     = awsConfig.CurrentValue;
 }
 public DatasetRepository(IGraphRepository graphRepository)
     : base(graphRepository)
 {
 }
 public OutcomeRepository(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
Example #13
0
        public BuildProjectsService(
            ILogger logger,
            ITelemetry telemetry,
            IProvidersApiClient providersApiClient,
            ICacheProvider cacheProvider,
            ICalculationsRepository calculationsRepository,
            IFeatureToggle featureToggle,
            ICalcsResiliencePolicies resiliencePolicies,
            EngineSettings engineSettings,
            ISourceCodeService sourceCodeService,
            IDatasetsApiClient datasetsApiClient,
            IBuildProjectsRepository buildProjectsRepository,
            ICalculationEngineRunningChecker calculationEngineRunningChecker,
            IJobManagement jobManagement,
            IGraphRepository graphRepository,
            IMapper mapper,
            ISpecificationsApiClient specificationsApiClient,
            IPoliciesApiClient policiesApiClient,
            ISourceFileRepository sourceFileRepository) : base(jobManagement, logger)
        {
            Guard.ArgumentNotNull(logger, nameof(logger));
            Guard.ArgumentNotNull(telemetry, nameof(telemetry));
            Guard.ArgumentNotNull(cacheProvider, nameof(cacheProvider));
            Guard.ArgumentNotNull(calculationsRepository, nameof(calculationsRepository));
            Guard.ArgumentNotNull(featureToggle, nameof(featureToggle));
            Guard.ArgumentNotNull(resiliencePolicies, nameof(resiliencePolicies));
            Guard.ArgumentNotNull(engineSettings, nameof(engineSettings));
            Guard.ArgumentNotNull(sourceCodeService, nameof(sourceCodeService));
            Guard.ArgumentNotNull(datasetsApiClient, nameof(datasetsApiClient));
            Guard.ArgumentNotNull(buildProjectsRepository, nameof(buildProjectsRepository));
            Guard.ArgumentNotNull(providersApiClient, nameof(providersApiClient));
            Guard.ArgumentNotNull(calculationEngineRunningChecker, nameof(calculationEngineRunningChecker));
            Guard.ArgumentNotNull(jobManagement, nameof(jobManagement));
            Guard.ArgumentNotNull(graphRepository, nameof(graphRepository));
            Guard.ArgumentNotNull(resiliencePolicies?.DatasetsApiClient, nameof(resiliencePolicies.DatasetsApiClient));
            Guard.ArgumentNotNull(resiliencePolicies?.ProvidersApiClient, nameof(resiliencePolicies.ProvidersApiClient));
            Guard.ArgumentNotNull(resiliencePolicies?.BuildProjectRepositoryPolicy, nameof(resiliencePolicies.BuildProjectRepositoryPolicy));
            Guard.ArgumentNotNull(resiliencePolicies?.CalculationsRepository, nameof(resiliencePolicies.CalculationsRepository));
            Guard.ArgumentNotNull(mapper, nameof(mapper));
            Guard.ArgumentNotNull(specificationsApiClient, nameof(specificationsApiClient));
            Guard.ArgumentNotNull(resiliencePolicies?.SpecificationsApiClient, nameof(resiliencePolicies.SpecificationsApiClient));
            Guard.ArgumentNotNull(policiesApiClient, nameof(policiesApiClient));
            Guard.ArgumentNotNull(resiliencePolicies?.PoliciesApiClient, nameof(resiliencePolicies.PoliciesApiClient));
            Guard.ArgumentNotNull(sourceFileRepository, nameof(sourceFileRepository));

            _logger                          = logger;
            _telemetry                       = telemetry;
            _providersApiClient              = providersApiClient;
            _providersApiClientPolicy        = resiliencePolicies.ProvidersApiClient;
            _cacheProvider                   = cacheProvider;
            _calculationsRepository          = calculationsRepository;
            _calculationsRepositoryPolicy    = resiliencePolicies.CalculationsRepository;
            _featureToggle                   = featureToggle;
            _engineSettings                  = engineSettings;
            _sourceCodeService               = sourceCodeService;
            _datasetsApiClient               = datasetsApiClient;
            _jobManagement                   = jobManagement;
            _graphRepository                 = graphRepository;
            _datasetsApiClientPolicy         = resiliencePolicies.DatasetsApiClient;
            _buildProjectsRepository         = buildProjectsRepository;
            _buildProjectsRepositoryPolicy   = resiliencePolicies.BuildProjectRepositoryPolicy;
            _calculationEngineRunningChecker = calculationEngineRunningChecker;
            _mapper                          = mapper;
            _specificationsApiClient         = specificationsApiClient;
            _specificationsApiClientPolicy   = resiliencePolicies.SpecificationsApiClient;
            _policiesApiClient               = policiesApiClient;
            _policiesApiClientPolicy         = resiliencePolicies.PoliciesApiClient;
            _sourceFileRepository            = sourceFileRepository;

            _typeIdentifierGenerator = new VisualBasicTypeIdentifierGenerator();
        }
Example #14
0
 public Engine(string name, IFlowRepository flowRepository, IGraphRepository graphRepository = null)
 {
     this.FlowRepository  = flowRepository;
     this.GraphRepository = graphRepository ?? WFlow.Repositories.GraphRepository.Default;
     this.Name            = name;
 }
 public QuestionRepository(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
Example #16
0
 public ExerciseRepository(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
 public MonitorRepository(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
Example #18
0
 public GraphController(IGraphRepository repo, IExceptionManager logger) : base(repo)
 {
     _logger = logger;
 }
Example #19
0
 public CategoryRepository(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
 /// <summary>
 /// Initializes a new instance of the EquipmentManagerService
 /// </summary>
 /// <param name="principal"></param>
 /// <param name="equipmentRepository"></param>
 /// <param name="materialRepository"></param>
 /// <param name="fileRepository"></param>
 /// <param name="fileManagerService"></param>
 /// <param name="graphRepository"></param>
 /// <param name="configuration"></param>
 public EquipmentManagerService(IPrincipal principal, IEquipmentRepository equipmentRepository, IMaterialRepository materialRepository, IFileRepository fileRepository, IFileManagerService fileManagerService, IGraphRepository graphRepository, IConfiguration configuration, IPartnerRepository partnerRepository, IRequestRepository requestRepository)
 {
     _principal           = principal as ClaimsPrincipal;
     _equipmentRepository = equipmentRepository;
     _materialRepository  = materialRepository;
     _fileRepository      = fileRepository;
     _fileManagerService  = fileManagerService;
     _graphRepository     = graphRepository;
     _configuration       = configuration;
     _partnerRepository   = partnerRepository;
     _requestRepository   = requestRepository;
 }
Example #21
0
 public WorkoutSessionRepository(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
Example #22
0
 public CareAdviceRepository(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
 public VersionRepository(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
 public QuestionRepository(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
Example #25
0
 public SunGrowFactory(IGraphRepository graph, ISunGrowRepository sunGrow, IMiscRepository misc)
 {
     _graph   = graph;
     _sungrow = sunGrow;
     _misc    = misc;
 }
Example #26
0
 public FundingLineRepository(IGraphRepository graphRepository)
     : base(graphRepository)
 {
 }
 public DashboardController(IGraphRepository graph_repo)
 {
     _graph_repo = graph_repo;
 }
Example #28
0
 public SymptomDiscriminatorRepository(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
Example #29
0
 public GoodWeeFactory(IGraphRepository graph, IGoodWeeRepository goodWee, IMiscRepository misc)
 {
     _graph   = graph;
     _goodWee = goodWee;
     _misc    = misc;
 }
 public RepositoryTestBase()
 {
     GraphRepository = new GraphRepository(new Configuration.Configuration());
 }
Example #31
0
        /// <summary>
        /// Initializes a new instance of the BillOfMaterialsManagerService
        /// </summary>
        /// <param name="principal"></param>
        /// <param name="bomRepository"></param>
        /// <param name="configuration"></param>
        /// <param name="hostingEnvironment"></param>
        /// <param name="fileRepository"></param>

        public BillOfMaterialsManagerService(IPrincipal principal, IBillOfMaterialRepository bomRepository, IConfiguration configuration, IHostingEnvironment hostingEnvironment, IFileRepository fileRepository, IGraphRepository graphRepository, IRequestRepository requestRepository, IMaterialManagerService materialManager, IEquipmentManagerService equipmentManager)
        {
            _principal          = principal as ClaimsPrincipal;
            _bomRepository      = bomRepository;
            _configuration      = configuration;
            _hostingEnvironment = hostingEnvironment;
            _fileRepository     = fileRepository;
            _graphRepository    = graphRepository;
            _requestRepository  = requestRepository;
            _materialManager    = materialManager;
            _equipmentManager   = equipmentManager;
        }
 public CareAdviceRepository(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
Example #33
0
        protected GraphRepositoryBase(IGraphRepository graphRepository)
        {
            Guard.ArgumentNotNull(graphRepository, nameof(graphRepository));

            _graphRepository = graphRepository;
        }
Example #34
0
 public SearchKeywordRepository(IGraphRepository graphRepository)
 {
     _graphRepository = graphRepository;
 }
 public PathwayRepository(IGraphRepository graphRepository, IPathwaysConfigurationManager pathwaysConfigurationManager, IPathwaysWhiteListFeature pathwaysWhiteListFeature)
 {
     _graphRepository = graphRepository;
     _pathwaysConfigurationManager = pathwaysConfigurationManager;
     _pathwaysWhiteListFeature     = pathwaysWhiteListFeature;
 }
 public RepositoryTestBase()
 {
     GraphRepository = new GraphRepository(new Configuration.Configuration());
 }
 public PathwayRepository(IGraphRepository graphRepository, IPathwaysConfigurationManager pathwaysConfigurationManager)
 {
     _graphRepository = graphRepository;
     _pathwaysConfigurationManager = pathwaysConfigurationManager;
 }