120 references to Path
Aspire.Dashboard.Tests (120)
Integration\StartupTests.cs (2)
1073DashboardRunStore.GetApplicationDirectory(workspace.Path, applicationName), 1088[DashboardConfigNames.DashboardDataDirectoryName.ConfigKey] = workspace.Path,
Model\DashboardDataSourceTests.cs (9)
38var expectedRunsDirectory = Path.Combine(workspace.Path, applicationDirectoryName, "runs"); 65var applicationDirectory = DashboardRunStore.GetApplicationDirectory(workspace.Path, "My Dashboard"); 232Assert.False(runDirectory.StartsWith(workspace.Path, StringComparison.OrdinalIgnoreCase)); 475var databasePath = Path.Combine(workspace.Path, $"malformed-{Guid.NewGuid():N}.db"); 961var historicalDirectory = Path.Combine(workspace.Path, "historical"); 967var malformedDirectory = Path.Combine(workspace.Path, "malformed"); 994DatabasePath = Path.Combine(workspace.Path, "unavailable", DashboardRunStore.DatabaseFileName), 1027var database = new DashboardSqliteDatabase(Path.Combine(workspace.Path, "connection.db")); 1229Directory = 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); 102using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 125using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 142using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 161using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 181using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "dashboard.db"), pooling: false); 202using var observedDatabase = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "observed.db"), pooling: false); 203using var otherDatabase = new DashboardSqliteDatabase(Path.Combine(_workspace.Path, "other.db"), pooling: false);
Model\SqliteResourceRepositoryTests.cs (40)
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); 252using var repositoryContext = CreateRepository(workspace.Path); 256using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 271using var repositoryContext = CreateRepository(workspace.Path); 293using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 407using var repositoryContext = CreateRepository(workspace.Path); 411using (var connection = new SqliteConnection($"Data Source={GetDatabasePath(workspace.Path)};Mode=ReadOnly;Pooling=False")) 423using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 481using var repositoryContext = CreateRepository(workspace.Path); 485using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 514using var repositoryContext = CreateRepository(workspace.Path); 518using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 529using var repositoryContext = CreateRepository(workspace.Path); 554var databasePath = GetDatabasePath(workspace.Path); 555using (CreateRepository(workspace.Path)) 581var databasePath = GetDatabasePath(workspace.Path); 611using var repositoryContext = CreateRepository(workspace.Path); 644var databasePath = GetDatabasePath(workspace.Path); 645using (CreateRepository(workspace.Path)) 687var databasePath = GetDatabasePath(workspace.Path); 688using (CreateRepository(workspace.Path)) 759var databasePath = GetDatabasePath(workspace.Path); 760using (CreateRepository(workspace.Path)) 825var databasePath = GetDatabasePath(workspace.Path); 826using (CreateRepository(workspace.Path)) 849var databasePath = GetDatabasePath(workspace.Path); 850using (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); 75using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 130using (var repositoryContext = await CreateRepositoryAsync(workspace.Path, outgoingPeerResolvers: [outgoingPeerResolver])) 172using var reopenedContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 187using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 206using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 240using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 258using var reopenedContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 273var databasePath = GetDatabasePath(workspace.Path); 276using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 298using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 319var databasePath = GetDatabasePath(workspace.Path); 329using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 362using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 387var databasePath = GetDatabasePath(workspace.Path); 390using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 409using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 442var databasePath = GetDatabasePath(workspace.Path); 445using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 479using var reopenedContext = await CreateRepositoryAsync(workspace.Path); 511var databasePath = GetDatabasePath(workspace.Path); 514using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 555var databasePath = GetDatabasePath(workspace.Path); 559using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 647var databasePath = GetDatabasePath(workspace.Path); 653using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 685var databasePath = GetDatabasePath(workspace.Path); 687using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 732var databasePath = GetDatabasePath(workspace.Path); 733using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 795var databasePath = GetDatabasePath(workspace.Path); 798using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 850var databasePath = GetDatabasePath(workspace.Path); 852using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 895var databasePath = GetDatabasePath(workspace.Path); 897using var repositoryContext = await CreateRepositoryAsync(workspace.Path, maxTraceCount: 1);
tests\Shared\TemporaryWorkspace.cs (1)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire");