153 references to Path
Aspire.Dashboard.Tests (153)
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 (17)
41var expectedRunsDirectory = Path.Combine(workspace.Path, "runs"); 44Assert.False(Directory.Exists(Path.Combine(workspace.Path, applicationDirectoryName))); 56var expectedResumesDirectory = Path.Combine(workspace.Path, "resumes"); 86? [DashboardRunStore.GetRunsDirectory(workspace.Path)] 89DashboardRunStore.GetResumesDirectory(workspace.Path), 90DashboardRunStore.GetApplicationDirectory(workspace.Path, "My Dashboard") 147var existingRunDirectory = Path.Combine(DashboardRunStore.GetRunsDirectory(workspace.Path), "20260720T123456789Z"); 165var runsDirectory = DashboardRunStore.GetRunsDirectory(workspace.Path); 382Assert.False(runDirectory.StartsWith(workspace.Path, StringComparison.OrdinalIgnoreCase)); 695var databasePath = Path.Combine(workspace.Path, $"malformed-{Guid.NewGuid():N}.db"); 996var runsDirectory = DashboardRunStore.GetRunsDirectory(workspace.Path); 1354var historicalDirectory = Path.Combine(workspace.Path, "historical"); 1360var malformedDirectory = Path.Combine(workspace.Path, "malformed"); 1387DatabasePath = Path.Combine(workspace.Path, "unavailable", DashboardRunStore.DatabaseFileName), 1420var database = new DashboardSqliteDatabase(Path.Combine(workspace.Path, "connection.db")); 1589DatabasePath = Path.Combine(workspace.Path, "incompatible", DashboardRunStore.DatabaseFileName), 1661Directory = 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)
24using var repositoryContext = CreateRepository(workspace.Path); 36using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 44using var repositoryContext = CreateRepository(workspace.Path); 67using var repositoryContext = CreateRepository(workspace.Path); 99using var repositoryContext = CreateRepository(workspace.Path); 113using var restartedRepositoryContext = CreateRepository(workspace.Path); 119using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 138using var repositoryContext = CreateRepository(workspace.Path); 158using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 184using var repositoryContext = CreateRepository(workspace.Path); 194using var restartedRepositoryContext = CreateRepository(workspace.Path); 204using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 229using var repositoryContext = CreateRepository(workspace.Path); 233using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 249using var repositoryContext = CreateRepository(workspace.Path, maxConsoleLogCount: 3); 263using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 293using var repositoryContext = CreateRepository(workspace.Path); 297using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 312using var repositoryContext = CreateRepository(workspace.Path); 334using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 448using var repositoryContext = CreateRepository(workspace.Path); 452using (var connection = new SqliteConnection($"Data Source={GetDatabasePath(workspace.Path)};Mode=ReadOnly;Pooling=False")) 464using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 522using var repositoryContext = CreateRepository(workspace.Path); 526using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 555using var repositoryContext = CreateRepository(workspace.Path); 559using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 570using var repositoryContext = CreateRepository(workspace.Path); 595var databasePath = GetDatabasePath(workspace.Path); 596using (CreateRepository(workspace.Path)) 622var databasePath = GetDatabasePath(workspace.Path); 652using var repositoryContext = CreateRepository(workspace.Path); 685var databasePath = GetDatabasePath(workspace.Path); 686using (CreateRepository(workspace.Path)) 728var databasePath = GetDatabasePath(workspace.Path); 729using (CreateRepository(workspace.Path)) 800var databasePath = GetDatabasePath(workspace.Path); 801using (CreateRepository(workspace.Path)) 888var databasePath = GetDatabasePath(workspace.Path); 889using (CreateRepository(workspace.Path)) 912var databasePath = GetDatabasePath(workspace.Path); 913using (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 (38)
30using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 59using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 120using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 175using (var repositoryContext = await CreateRepositoryAsync(workspace.Path, outgoingPeerResolvers: [outgoingPeerResolver])) 217using var reopenedContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 232using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 251using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 279using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 297using var reopenedContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 312var databasePath = GetDatabasePath(workspace.Path); 315using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 337using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 358var databasePath = GetDatabasePath(workspace.Path); 368using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 401using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 426var databasePath = GetDatabasePath(workspace.Path); 429using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 448using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 483var databasePath = GetDatabasePath(workspace.Path); 563var databasePath = GetDatabasePath(workspace.Path); 566using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 600using var reopenedContext = await CreateRepositoryAsync(workspace.Path); 632var databasePath = GetDatabasePath(workspace.Path); 635using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 676var databasePath = GetDatabasePath(workspace.Path); 680using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 768var databasePath = GetDatabasePath(workspace.Path); 774using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 806var databasePath = GetDatabasePath(workspace.Path); 808using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 853var databasePath = GetDatabasePath(workspace.Path); 854using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 916var databasePath = GetDatabasePath(workspace.Path); 919using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 971var databasePath = GetDatabasePath(workspace.Path); 973using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 1016var databasePath = GetDatabasePath(workspace.Path); 1018using 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");