public UglyDataRepository(IPathBuilder pathBuilder, IConfig config) { _config = config; var path = pathBuilder.GetDatabasePath(config.DatabaseName); _db = open_v2(path, SQLITE_OPEN_READONLY, null); }
public ComplexMetricValuesRetriever(ISessionFactory sessionFactory, ISimpleMetricValuesRetriever simpleValuesRetriever, IPathBuilder pathBuilder) { _sessionFactory = sessionFactory; _simpleValuesRetriever = simpleValuesRetriever; _pathBuilder = pathBuilder; }
internal static IPatternedPath <TANode, TBNode> SharedPattern <TANode, TBNode> (this IPathBuilder source, Expression <Func <TANode, IEnumerable <TBNode> > > relationship, string A, string R, string B, RelationshipDirection?dir) { return((IPatternedPath <TANode, TBNode>)SharedPattern <TANode, CypherObject, TBNode>(source, relationship, A, R, B, dir)); }
public MeasurementsQuery(ISessionFactory sessionFactory, IMapper mapper, IPathBuilder pathBuilder, IComplexMetricValuesRetriever complexMetricValuesRetriever) { _sessionFactory = sessionFactory; _mapper = mapper; _simpleMetricValuesRetriever = new SimpleMetricValuesRetriever(mapper, pathBuilder); _complexMetricValuesRetriever = complexMetricValuesRetriever; }
public SqliteContext(IPathBuilder pathBuilder) { string path = pathBuilder.Build(Constants.SqliteDBFile); database = new SQLiteConnection(path); initialize(); }
public EntryManager(ILogger logger, IPathBuilder pathBuilder, IJsonManager jsonManager) { _logger = logger; _pathBuilder = pathBuilder; _jsonManager = jsonManager; _entries = GetEntries(); }
public ACLTokenAdapter(IPathBuilder visitor) { if (visitor == null) { throw new ArgumentNullException(nameof(visitor)); } _visitor = visitor; }
public SoundBoardService(IDataService <SoundBoardInfo> soundBoardDataService, ISoundBoardSettings soundBoardSettings, IStreamedPlayer player, IPathBuilder pathBuilder, INowHelper nowHelper) { this.nowHelper = nowHelper; this.pathBuilder = pathBuilder; this.player = player; this.soundBoardSettings = soundBoardSettings; this.soundBoardDataService = soundBoardDataService; }
public SoundBoardService(IDataService<SoundBoardInfo> soundBoardDataService, ISoundBoardSettings soundBoardSettings, IStreamedPlayer player, IPathBuilder pathBuilder, INowHelper nowHelper) { this.nowHelper = nowHelper; this.pathBuilder = pathBuilder; this.player = player; this.soundBoardSettings = soundBoardSettings; this.soundBoardDataService = soundBoardDataService; }
public MoveEntityCommandHandler( ITransactionService <TContext> transactionService, IEntityCommandsHelper <TContext> commandsHelper, IPathBuilder <TContext> pathBuilder) { _transactionService = transactionService ?? throw new ArgumentNullException(nameof(transactionService)); _commandsHelper = commandsHelper ?? throw new ArgumentNullException(nameof(commandsHelper)); _pathBuilder = pathBuilder ?? throw new ArgumentNullException(nameof(pathBuilder)); }
/// <summary> /// Initializes a new instance of the <see cref="StorageService" /> class. /// </summary> /// <param name="pathBuilder">The path builder.</param> /// <param name="fileSystem">The file system.</param> /// <exception cref="System.ArgumentNullException">pathBuilder</exception> public StorageService(IPathBuilder pathBuilder, IFileSystem fileSystem) { if (pathBuilder == null) { throw new ArgumentNullException("pathBuilder"); } PathBuilder = pathBuilder; _fileSystem = fileSystem; }
public EntityQueries(IEntityCollectionsService <TContext> collectionService, IEntityPropertyResolver <TContext> propertyResolver, IPathBuilder <TContext> pathBuilder, ISecurityRuleEvaluator <TContext> securityEvaluator) { _collectionService = collectionService ?? throw new ArgumentNullException(nameof(collectionService)); _propertyResolver = propertyResolver ?? throw new ArgumentNullException(nameof(propertyResolver)); _pathBuilder = pathBuilder ?? throw new ArgumentNullException(nameof(pathBuilder)); _securityEvaluator = securityEvaluator ?? throw new ArgumentNullException(nameof(securityEvaluator)); }
public AddWindowViewModel(IEntryManager entryManager, IRegistryService registryService, IPathBuilder pathBuilder, IProcessManager processManager) { _entryManager = entryManager; _registryService = registryService; _pathBuilder = pathBuilder; _processManager = processManager; OkCommand = new RelayCommand(Ok); CancelCommand = new RelayCommand(Cancel); }
public CommandHandlerHelper( IEntityPropertyResolver <TContext> propertyResolver, IPathBuilder <TContext> pathBuilder, ISecurityRuleEvaluator <TContext> securityEvaluator, IEntityNotificationService <TContext> notificationService) { _propertyResolver = propertyResolver ?? throw new ArgumentNullException(nameof(propertyResolver)); _pathBuilder = pathBuilder ?? throw new ArgumentNullException(nameof(pathBuilder)); _securityEvaluator = securityEvaluator ?? throw new ArgumentNullException(nameof(securityEvaluator)); _notificationService = notificationService; }
public FileSwitcher(IEntryManager entries, IFileGenerator fileGenerator, IProcessManager processManager, IRegistryService registryService, ILogger logger, IPathBuilder pathBuilder, IJsonManager jsonManager) { _entries = entries; _fileGenerator = fileGenerator; _processManager = processManager; _registryService = registryService; _logger = logger; _pathBuilder = pathBuilder; _jsonManager = jsonManager; }
public static IPath BuildTestPath(IPathBuilder P) { return(P .Pattern <MovieNode, MovieActorRelationship, ActorNode>("greysAnatomy", "ellenPompeo") .Label(new[] { "Series" }, new[] { "STARRED_IN" }, new[] { "Female" }, true, false, false) .Constrain(movie => movie.Title == "Grey's Anatomy" && movie.Year == 2017, null, actor => actor.Name == "Ellen Pompeo" && actor.Born == CypherVariables.Get <ActorNode>("shondaRhimes").Born && actor.Roles == new[] { "Meredith Grey" }) .Hop(1) //not necessary, but for tests ); }
public static long RunTest(SimpleField field, IPathBuilder builder, Point start, Point finish, int runCount) { var watch = new Stopwatch(); field.FindPath(Bfs, start, finish); watch.Start(); for (var i = 0; i < runCount; i++) { field.FindPath(builder, start, finish); } watch.Stop(); return(watch.ElapsedMilliseconds); }
public static IPath BuildTestPathMixed(IPathBuilder P) { return(P .Pattern <MovieNode, MovieActorRelationship, ActorNode>("greysAnatomy", "ellenPompeo") .Label(new[] { "Series" }, new[] { "STARRED_IN" }, new[] { "Female" }, true, false, false) .Prop(() => new MovieNode //could have used constrain, but would be good to test both methods { Title = "Grey's Anatomy", Year = 2017 }) .Hop(1) //not necessary, but for tests .Constrain(null, null, actor => actor.Name == "Ellen Pompeo" && actor.Born == CypherVariables.Get <ActorNode>("shondaRhimes").Born && actor.Roles == new[] { "Meredith Grey" })); }
public static IContext run(string rootDirectory) { IPathBuilder pathBuilder = getPathBuilder(rootDirectory); FileSystemInstaller.run(pathBuilder); IFileSystemManager fileSystemManager = new FileSystemManager(pathBuilder); string databaseFilePath = pathBuilder.getPath(SpecialFile.DATABASE); IDatabaseManager databaseManager = DatabaseInstaller.run(databaseFilePath); IRecordIdMap recordIdMap = new RecordIdMap(fileSystemManager, true); IContext context = new Context(rootDirectory); return(context); }
private void RunCoverTask( ITaskContext context, IPathBuilder assemblyFullFileName, string dotCoverExeFileName, string snapshotFileName) { string projectDir = Path.GetDirectoryName(assemblyFullFileName.ToString()); string projectBinFileName = Path.GetFileName(assemblyFullFileName.FileName); context.WriteInfo("Running unit tests (with code coverage)..."); IRunProgramTask runDotCovertask = new RunProgramTask(dotCoverExeFileName).AddArgument("cover").AddArgument("/TargetExecutable={0}", nunitRunnerFileName).AddArgument("/TargetArguments={0} {1}", projectBinFileName, NUnitCmdLineOptions).AddArgument("/TargetWorkingDir={0}", projectDir).AddArgument("/Filters={0}", DotCoverFilters).AddArgument("/AttributeFilters={0}", DotCoverAttributeFilters).AddArgument("/Output={0}", snapshotFileName) //.AddArgument("/LogFile={0}", Path.Combine(buildDir, "dotCover-log.xml")) .AddArgument("/ReturnTargetExitCode"); runDotCovertask.Execute(context); }
public EntityContextServices( ILogger <TContext> logger, ICollectionService <TContext> collectionsService, EntityQueries <TContext> queries, EntityCommands <TContext> commands, EntityConfigurator <TContext> configurator, IEntityPropertyResolver <TContext> propertyResolver, IPathBuilder <TContext> pathBuilder, EntityContextInitializer <TContext> initializer, IEntityNotificationService <TContext> notificationService, ISecurityDisablerService securityDisablerService) { Logger = logger; Collections = collectionsService ?? throw new ArgumentException(nameof(collectionsService)); Queries = queries ?? throw new ArgumentNullException(nameof(queries)); Commands = commands ?? throw new ArgumentNullException(nameof(commands)); Configurator = configurator ?? throw new ArgumentNullException(nameof(configurator)); PropertyResolver = propertyResolver ?? throw new ArgumentNullException(nameof(propertyResolver)); PathBuilder = pathBuilder ?? throw new ArgumentNullException(nameof(pathBuilder)); Initializer = initializer ?? throw new ArgumentNullException(nameof(initializer)); NotificationService = notificationService ?? throw new ArgumentNullException(nameof(notificationService)); SecurityDisablerService = securityDisablerService ?? throw new ArgumentNullException(nameof(securityDisablerService)); }
public FileGenerator(IPathBuilder pathBuilder, ILogger logger) { _pathBuilder = pathBuilder; _logger = logger; }
public SourcesFactory(IPathBuilder builder) { this.builder = builder; }
public LifeScoresSource(IPathBuilder builder) { this.builder = builder; }
public Path(IPathBuilder builder, AnnotationsContext context) : base(builder.CypherQuery, context) { Builder = builder; //PatternBuildStrategy = builder.PatternBuildStrategy; }
public ScriptRunner(IEnumerable <Type> typeUniverse, IInstanceBuilder instanceBuilder, IPathBuilder pathBuilder) { this.typeUniverse = typeUniverse; this.instanceBuilder = instanceBuilder; this.pathBuilder = pathBuilder; }
public Client(ISystemTime systemTime, IPathBuilder pathBuilder) { _systemTime = systemTime; _pathBuilder = pathBuilder; }
public GeometryParser(IPath geometry, IPathBuilder context) { _geometry = geometry; _context = context; }
public Path(IPathBuilder builder) : this(builder, builder.AnnotationsContext) { }
public void FindPath(IPathBuilder builder, Point from, Point to) { _path = builder.FindPath(this, from, to).ToList(); }
public SecurityRulesFinder(ICollectionService <TContext> collectionService, IPathBuilder <TContext> pathBuilder) { _collectionService = collectionService ?? throw new ArgumentNullException(nameof(collectionService)); _pathBuilder = pathBuilder ?? throw new ArgumentNullException(nameof(pathBuilder)); }
public Collapser(IPathBuilder pathBuilder) { _pathBuilder = pathBuilder; }
public GeometryParser(IPath geometry, IPathBuilder context) { _geometry = geometry; _context = context; }
public void SetPathBuilder() { pathBuilder = new PathBuilder(); }