2 instantiations of ProjectLocator
Aspire.Cli.Tests (2)
Projects\ProjectLocatorTests.cs (1)
4177return new ProjectLocator(
Utils\CliTestHelper.cs (1)
481return new ProjectLocator(logger, executionContext, environment, interactionService, configurationService, projectFactory, languageDiscovery, sdkInstaller, appHostCandidateFinder, telemetry, configuration);
129 references to ProjectLocator
aspire (2)
Program.cs (1)
434builder.Services.AddSingleton<IProjectLocator, ProjectLocator>();
Projects\ProjectLocator.cs (1)
139ILogger<ProjectLocator> logger,
Aspire.Cli.Tests (127)
Projects\ProjectLocatorTests.cs (126)
75var projectLocator = CreateProjectLocator( 106var projectLocator = CreateProjectLocator(CreateExecutionContext(workspace.WorkspaceRoot)); 135var projectLocator = CreateProjectLocator( 167var projectLocator = CreateProjectLocator( 202var projectLocator = CreateProjectLocator( 234var projectLocator = CreateProjectLocator(CreateExecutionContext(workspace.WorkspaceRoot)); 256var projectLocator = CreateProjectLocator( 280var projectLocator = CreateProjectLocator(CreateExecutionContext(workspace.WorkspaceRoot)); 358Assert.True(ProjectLocator.IsSamePersistedAppHostPath(configuredPath, selectedPath, TestEnvironment.CreateWindows())); 359Assert.False(ProjectLocator.IsSamePersistedAppHostPath(configuredPath, selectedPath, TestEnvironment.CreateLinux())); 360Assert.False(ProjectLocator.IsSamePersistedAppHostPath(configuredPath, selectedPath, TestEnvironment.CreateMacOS())); 382var projectLocator = CreateProjectLocator( 417var projectLocator = CreateProjectLocator( 449var projectLocator = CreateProjectLocator(CreateExecutionContext(workspace.WorkspaceRoot)); 490var projectLocator = CreateProjectLocator(executionContext); 516var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 567var projectLocator = CreateProjectLocator(executionContext, configurationService: configurationService, projectFactory: projectFactory); 608var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 636var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 667var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 699var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 738var projectLocator = CreateProjectLocator(executionContext); 767var projectLocator = CreateProjectLocator(executionContext); 798var projectLocator = CreateProjectLocator(executionContext); 838var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 882var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 912var projectLocator = CreateProjectLocatorWithSingleFileEnabled(executionContext); 935var projectLocator = CreateProjectLocatorWithSingleFileEnabled(executionContext); 980var projectLocator = CreateProjectLocator( 1018var projectLocator = CreateProjectLocator( 1053var projectLocator = CreateProjectLocator( 1107var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 1160var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 1197var projectLocator = CreateProjectLocator(executionContext); 1238var projectLocator = CreateProjectLocator(executionContext, interactionService: interactionService); 1270var projectLocator = CreateProjectLocator(executionContext, interactionService: interactionService); 1309var projectLocator = CreateProjectLocator(executionContext); 1328var projectLocator = CreateProjectLocator(executionContext); 1358var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 1369var projectLocator = CreateProjectLocator(executionContext); 1389var projectLocator = CreateProjectLocator(executionContext); 1416var projectLocator = CreateProjectLocator(executionContext); 1436var projectLocator = CreateProjectLocator(executionContext); 1465var projectLocator = CreateProjectLocator( 1502var locator = CreateProjectLocator(executionContext, configurationService: configurationService, projectFactory: projectFactory); 1552var projectLocator = CreateProjectLocator( 1621var projectLocator = CreateProjectLocator( 1676var projectLocator = CreateProjectLocator( 1729var locator = CreateProjectLocator(executionContext, configurationService: configurationService); 1764var projectLocator = CreateProjectLocatorWithSingleFileEnabled(executionContext); 1789var projectLocator = CreateProjectLocatorWithSingleFileEnabled(executionContext); 1830var projectLocator = CreateProjectLocatorWithSingleFileEnabled(executionContext, projectFile => 1865var projectLocator = CreateProjectLocatorWithSingleFileEnabled(executionContext); 1895var projectLocator = CreateProjectLocatorWithSingleFileEnabled(executionContext, projectFile => 1932var projectLocator = CreateProjectLocator( 1958var projectLocator = CreateProjectLocatorWithSingleFileEnabled(executionContext); 1977var projectLocator = CreateProjectLocatorWithSingleFileEnabled(executionContext); 2000var projectLocator = CreateProjectLocator(executionContext, interactionService: interactionService); 2033var projectLocator = CreateProjectLocatorWithSingleFileEnabled(executionContext); 2048var projectLocator = CreateProjectLocator(executionContext); 2080var projectLocator = CreateProjectLocatorWithSingleFileEnabled(executionContext, projectFile => 2239private static ProjectLocator CreateProjectLocatorWithSingleFileEnabled(CliExecutionContext executionContext, Func<FileInfo, AppHostValidationResult>? validateCallback = null) 2272var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 2290var projectLocator = CreateProjectLocator(executionContext); 2319var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 2352var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 2400var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 2447var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 2489var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 2528var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 2549var result = ProjectLocator.IsUnderDirectory(file, directory, TestEnvironment.CreateMacOS()); 2590var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 2632var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 2661var projectLocator = CreateProjectLocator(executionContext); 2694var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 2729var projectLocator = CreateProjectLocatorWithSingleFileEnabled(executionContext, projectFile => 2773var projectLocator = CreateProjectLocatorWithSingleFileEnabled(executionContext, projectFile => 2811var projectLocator = CreateProjectLocatorWithSingleFileEnabled(executionContext); 2834var projectLocator = CreateProjectLocator(executionContext, sdkInstaller: sdkInstaller); 2855var projectLocator = CreateProjectLocator(executionContext, sdkInstaller: sdkInstaller); 2878var projectLocator = CreateProjectLocator(executionContext, interactionService: interactionService, sdkInstaller: sdkInstaller); 2906var projectLocator = CreateProjectLocator(executionContext, sdkInstaller: sdkInstaller); 2941var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory, environment: new TestEnvironment(envVars)); 2971var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 3009var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory, environment: new TestEnvironment(envVars)); 3049var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory, environment: new TestEnvironment(envVars)); 3074var projectLocator = CreateProjectLocator(executionContext); 3101var projectLocator = CreateProjectLocator(executionContext); 3127var projectLocator = CreateProjectLocator(executionContext); 3149var projectLocator = CreateProjectLocator(executionContext); 3205var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 3240var projectLocator = CreateProjectLocator(executionContext); 3273var projectLocator = CreateProjectLocator(executionContext); 3305var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 3332var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 3361var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 3392var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 3441var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory, gitRepository: sentinelGit); 3473var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 3512var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory, gitRepository: fakeGit); 3549var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory, gitRepository: fakeGit); 3584var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory, gitRepository: fakeGit); 3643var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 3668var projectLocator = CreateProjectLocator(executionContext); 3701var projectLocator = CreateProjectLocator(executionContext); 3739var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 3779var projectLocator = CreateProjectLocator(executionContext, interactionService: interactionService); 3811var logger = new TestLogger<ProjectLocator>(new TestLoggerFactory(sink, enabled: true)); 3814var projectLocator = CreateProjectLocator(executionContext, interactionService: interactionService, logger: logger); 3840var projectLocator = CreateProjectLocator(executionContext, interactionService: interactionService); 3867var projectLocator = CreateProjectLocator(executionContext, interactionService: interactionService); 3892var projectLocator = CreateProjectLocator(executionContext, interactionService: interactionService); 3916var logger = new TestLogger<ProjectLocator>(new TestLoggerFactory(sink, enabled: true)); 3919var projectLocator = CreateProjectLocator(executionContext, interactionService: interactionService, logger: logger); 3946var logger = new TestLogger<ProjectLocator>(new TestLoggerFactory(sink, enabled: true)); 3949var projectLocator = CreateProjectLocator(executionContext, interactionService: interactionService, logger: logger); 3973var logger = new TestLogger<ProjectLocator>(new TestLoggerFactory(sink, enabled: true)); 3976var projectLocator = CreateProjectLocator(executionContext, interactionService: interactionService, logger: logger); 4000var logger = new TestLogger<ProjectLocator>(new TestLoggerFactory(sink, enabled: true)); 4003var projectLocator = CreateProjectLocator(executionContext, interactionService: interactionService, logger: logger); 4076var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 4116var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 4147var projectLocator = CreateProjectLocator(executionContext, projectFactory: projectFactory); 4158private static ProjectLocator CreateProjectLocator( 4167ILogger<ProjectLocator>? logger = null, 4178logger ?? NullLogger<ProjectLocator>.Instance,
Utils\CliTestHelper.cs (1)
467var logger = serviceProvider.GetRequiredService<ILogger<ProjectLocator>>();