150 references to Path
Aspire.Dashboard.Tests (150)
Integration\StartupTests.cs (3)
1141var runsDirectory = DashboardRunStore.GetRunsDirectory(workspace.Path); 1155[DashboardConfigNames.DashboardDataDirectoryName.ConfigKey] = workspace.Path, 1234data[DashboardConfigNames.DashboardDataDirectoryName.ConfigKey] = workspace.Path;
Model\DashboardClientTests.cs (3)
253var path = Path.Combine(workspace.Path, "client.pfx"); 296var path = Path.Combine(workspace.Path, "client.pfx"); 323var path = Path.Combine(workspace.Path, "missing.pfx");
Model\DashboardDataSourceTests.cs (15)
40var expectedRunsDirectory = Path.Combine(workspace.Path, "runs"); 43Assert.False(Directory.Exists(Path.Combine(workspace.Path, applicationDirectoryName))); 55var expectedResumesDirectory = Path.Combine(workspace.Path, "resumes"); 85? [DashboardRunStore.GetRunsDirectory(workspace.Path)] 88DashboardRunStore.GetResumesDirectory(workspace.Path), 89DashboardRunStore.GetApplicationDirectory(workspace.Path, "My Dashboard") 338Assert.False(runDirectory.StartsWith(workspace.Path, StringComparison.OrdinalIgnoreCase)); 651var databasePath = Path.Combine(workspace.Path, $"malformed-{Guid.NewGuid():N}.db"); 952var runsDirectory = DashboardRunStore.GetRunsDirectory(workspace.Path); 1310var historicalDirectory = Path.Combine(workspace.Path, "historical"); 1316var malformedDirectory = Path.Combine(workspace.Path, "malformed"); 1343DatabasePath = Path.Combine(workspace.Path, "unavailable", DashboardRunStore.DatabaseFileName), 1376var database = new DashboardSqliteDatabase(Path.Combine(workspace.Path, "connection.db")); 1545DatabasePath = Path.Combine(workspace.Path, "incompatible", DashboardRunStore.DatabaseFileName), 1617Directory = workspace.Path,
Model\DashboardSqliteDatabaseTests.cs (11)
27using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 40var databasePath = Path.Combine(_workspace.Path, "dashboard.db"); 59using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 77using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 109using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 132using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 149using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 168using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 188using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 209using var observedDatabase = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "observed.db"), pooling: false); 210using var otherDatabase = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "other.db"), pooling: false);
Model\SqliteResourceRepositoryTests.cs (42)
23using var repositoryContext = CreateRepository(workspace.Path); 35using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 43using var repositoryContext = CreateRepository(workspace.Path); 66using var repositoryContext = CreateRepository(workspace.Path); 98using var repositoryContext = CreateRepository(workspace.Path); 112using var restartedRepositoryContext = CreateRepository(workspace.Path); 118using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 137using var repositoryContext = CreateRepository(workspace.Path); 157using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 183using var repositoryContext = CreateRepository(workspace.Path); 193using var restartedRepositoryContext = CreateRepository(workspace.Path); 203using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 228using var repositoryContext = CreateRepository(workspace.Path); 232using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 248using var repositoryContext = CreateRepository(workspace.Path, maxConsoleLogCount: 3); 262using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 292using var repositoryContext = CreateRepository(workspace.Path); 296using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 311using var repositoryContext = CreateRepository(workspace.Path); 333using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 447using var repositoryContext = CreateRepository(workspace.Path); 451using (var connection = new SqliteConnection($"Data Source={GetDatabasePath(workspace.Path)};Mode=ReadOnly;Pooling=False")) 463using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 521using var repositoryContext = CreateRepository(workspace.Path); 525using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 554using var repositoryContext = CreateRepository(workspace.Path); 558using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 569using var repositoryContext = CreateRepository(workspace.Path); 594var databasePath = GetDatabasePath(workspace.Path); 595using (CreateRepository(workspace.Path)) 621var databasePath = GetDatabasePath(workspace.Path); 651using var repositoryContext = CreateRepository(workspace.Path); 684var databasePath = GetDatabasePath(workspace.Path); 685using (CreateRepository(workspace.Path)) 727var databasePath = GetDatabasePath(workspace.Path); 728using (CreateRepository(workspace.Path)) 799var databasePath = GetDatabasePath(workspace.Path); 800using (CreateRepository(workspace.Path)) 887var databasePath = GetDatabasePath(workspace.Path); 888using (CreateRepository(workspace.Path)) 911var databasePath = GetDatabasePath(workspace.Path); 912using (CreateRepository(workspace.Path))
Model\TelemetryExportServiceTests.cs (21)
40using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 108using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 147using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 229using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 267using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 346using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 390using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 440using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 523using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 605using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 687using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 749using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 792using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 841using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 892using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 952using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 1036using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 1074using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 1127using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 1188using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 1229using var repositoryContext = await CreateRepositoryAsync(workspace.Path);
TelemetryRepositoryTests\HistogramTests.cs (11)
98var databasePath = Path.Combine(workspace.Path, "dashboard.db"); 251var databasePath = Path.Combine(workspace.Path, "dashboard.db"); 339var databasePath = Path.Combine(workspace.Path, "dashboard.db"); 418var databasePath = Path.Combine(workspace.Path, "dashboard.db"); 648var databasePath = Path.Combine(workspace.Path, "dashboard.db"); 696var databasePath = Path.Combine(workspace.Path, "dashboard.db"); 772var databasePath = Path.Combine(workspace.Path, "dashboard.db"); 1024var databasePath = Path.Combine(workspace.Path, "dashboard.db"); 1226var databasePath = Path.Combine(workspace.Path, "dashboard.db"); 1390var databasePath = Path.Combine(workspace.Path, "dashboard.db"); 1523var databasePath = Path.Combine(workspace.Path, "dashboard.db");
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (37)
30using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 91using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 146using (var repositoryContext = await CreateRepositoryAsync(workspace.Path, outgoingPeerResolvers: [outgoingPeerResolver])) 188using var reopenedContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 203using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 222using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 250using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 268using var reopenedContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 283var databasePath = GetDatabasePath(workspace.Path); 286using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 308using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 329var databasePath = GetDatabasePath(workspace.Path); 339using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 372using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 397var databasePath = GetDatabasePath(workspace.Path); 400using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 419using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 454var databasePath = GetDatabasePath(workspace.Path); 534var databasePath = GetDatabasePath(workspace.Path); 537using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 571using var reopenedContext = await CreateRepositoryAsync(workspace.Path); 603var databasePath = GetDatabasePath(workspace.Path); 606using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 647var databasePath = GetDatabasePath(workspace.Path); 651using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 739var databasePath = GetDatabasePath(workspace.Path); 745using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 777var databasePath = GetDatabasePath(workspace.Path); 779using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 824var databasePath = GetDatabasePath(workspace.Path); 825using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 887var databasePath = GetDatabasePath(workspace.Path); 890using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 942var databasePath = GetDatabasePath(workspace.Path); 944using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 987var databasePath = GetDatabasePath(workspace.Path); 989using var repositoryContext = await CreateRepositoryAsync(workspace.Path, maxTraceCount: 1);
TelemetryRepositoryTests\TelemetryReceiptTests.cs (6)
28var path = Path.Combine(_workspace.Path, "dashboard.db"); 58using var context = SqliteRepositoryTestHelpers.CreateTelemetryRepository(Path.Combine(_workspace.Path, "dashboard.db")); 79Path.Combine(_workspace.Path, "dashboard.db"), pauseManager: pauseManager); 89using var context = SqliteRepositoryTestHelpers.CreateTelemetryRepository(Path.Combine(_workspace.Path, "dashboard.db")); 109var path = Path.Combine(_workspace.Path, "dashboard.db"); 128using var context = SqliteRepositoryTestHelpers.CreateTelemetryRepository(Path.Combine(_workspace.Path, "dashboard.db"));
tests\Shared\TemporaryWorkspace.cs (1)
218var aspireDir = IOPath.Combine(workspace.Path, ".aspire");