131 references to Path
Aspire.Dashboard.Tests (131)
Integration\StartupTests.cs (2)
1089var runsDirectory = DashboardRunStore.GetRunsDirectory(workspace.Path); 1103[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)); 648var databasePath = Path.Combine(workspace.Path, $"malformed-{Guid.NewGuid():N}.db"); 949var runsDirectory = DashboardRunStore.GetRunsDirectory(workspace.Path); 1307var historicalDirectory = Path.Combine(workspace.Path, "historical"); 1313var malformedDirectory = Path.Combine(workspace.Path, "malformed"); 1340DatabasePath = Path.Combine(workspace.Path, "unavailable", DashboardRunStore.DatabaseFileName), 1373var database = new DashboardSqliteDatabase(Path.Combine(workspace.Path, "connection.db")); 1541DatabasePath = Path.Combine(workspace.Path, "incompatible", DashboardRunStore.DatabaseFileName), 1613Directory = workspace.Path,
Model\DashboardSqliteDatabaseTests.cs (11)
27using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 38var databasePath = Path.Combine(_workspace.Path, "dashboard.db"); 56using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 74using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 106using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 129using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 146using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 165using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 185using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 206using var observedDatabase = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "observed.db"), pooling: false); 207using 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)) 865var databasePath = GetDatabasePath(workspace.Path); 866using (CreateRepository(workspace.Path)) 889var databasePath = GetDatabasePath(workspace.Path); 890using (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\SqliteTelemetryPersistenceTests.cs (36)
33using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 94using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 149using (var repositoryContext = await CreateRepositoryAsync(workspace.Path, outgoingPeerResolvers: [outgoingPeerResolver])) 191using var reopenedContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 206using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 225using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 259using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 277using var reopenedContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 292var databasePath = GetDatabasePath(workspace.Path); 295using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 317using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 338var databasePath = GetDatabasePath(workspace.Path); 348using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 381using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 406var databasePath = GetDatabasePath(workspace.Path); 409using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 428using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 461var databasePath = GetDatabasePath(workspace.Path); 464using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 498using var reopenedContext = await CreateRepositoryAsync(workspace.Path); 530var databasePath = GetDatabasePath(workspace.Path); 533using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 574var databasePath = GetDatabasePath(workspace.Path); 578using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 666var databasePath = GetDatabasePath(workspace.Path); 672using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 704var databasePath = GetDatabasePath(workspace.Path); 706using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 751var databasePath = GetDatabasePath(workspace.Path); 752using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 814var databasePath = GetDatabasePath(workspace.Path); 817using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 869var databasePath = GetDatabasePath(workspace.Path); 871using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 914var databasePath = GetDatabasePath(workspace.Path); 916using var repositoryContext = await CreateRepositoryAsync(workspace.Path, maxTraceCount: 1);
tests\Shared\TemporaryWorkspace.cs (1)
245var aspireDir = IOPath.Combine(workspace.Path, ".aspire");