131 references to Path
Aspire.Dashboard.Tests (131)
Integration\StartupTests.cs (2)
1089
var runsDirectory = DashboardRunStore.GetRunsDirectory(workspace.
Path
);
1103
[DashboardConfigNames.DashboardDataDirectoryName.ConfigKey] = workspace.
Path
,
Model\DashboardClientTests.cs (3)
253
var path = Path.Combine(workspace.
Path
, "client.pfx");
296
var path = Path.Combine(workspace.
Path
, "client.pfx");
323
var path = Path.Combine(workspace.
Path
, "missing.pfx");
Model\DashboardDataSourceTests.cs (15)
40
var expectedRunsDirectory = Path.Combine(workspace.
Path
, "runs");
43
Assert.False(Directory.Exists(Path.Combine(workspace.
Path
, applicationDirectoryName)));
55
var expectedResumesDirectory = Path.Combine(workspace.
Path
, "resumes");
85
? [DashboardRunStore.GetRunsDirectory(workspace.
Path
)]
88
DashboardRunStore.GetResumesDirectory(workspace.
Path
),
89
DashboardRunStore.GetApplicationDirectory(workspace.
Path
, "My Dashboard")
338
Assert.False(runDirectory.StartsWith(workspace.
Path
, StringComparison.OrdinalIgnoreCase));
648
var databasePath = Path.Combine(workspace.
Path
, $"malformed-{Guid.NewGuid():N}.db");
949
var runsDirectory = DashboardRunStore.GetRunsDirectory(workspace.
Path
);
1307
var historicalDirectory = Path.Combine(workspace.
Path
, "historical");
1313
var malformedDirectory = Path.Combine(workspace.
Path
, "malformed");
1340
DatabasePath = Path.Combine(workspace.
Path
, "unavailable", DashboardRunStore.DatabaseFileName),
1373
var database = new DashboardSqliteDatabase(Path.Combine(workspace.
Path
, "connection.db"));
1541
DatabasePath = Path.Combine(workspace.
Path
, "incompatible", DashboardRunStore.DatabaseFileName),
1613
Directory = workspace.
Path
,
Model\DashboardSqliteDatabaseTests.cs (11)
27
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
38
var databasePath = Path.Combine(_workspace.
Path
, "dashboard.db");
56
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
74
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
106
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
129
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
146
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
165
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
185
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
206
using var observedDatabase = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "observed.db"), pooling: false);
207
using var otherDatabase = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "other.db"), pooling: false);
Model\SqliteResourceRepositoryTests.cs (42)
23
using var repositoryContext = CreateRepository(workspace.
Path
);
35
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
43
using var repositoryContext = CreateRepository(workspace.
Path
);
66
using var repositoryContext = CreateRepository(workspace.
Path
);
98
using var repositoryContext = CreateRepository(workspace.
Path
);
112
using var restartedRepositoryContext = CreateRepository(workspace.
Path
);
118
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
137
using var repositoryContext = CreateRepository(workspace.
Path
);
157
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
183
using var repositoryContext = CreateRepository(workspace.
Path
);
193
using var restartedRepositoryContext = CreateRepository(workspace.
Path
);
203
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
228
using var repositoryContext = CreateRepository(workspace.
Path
);
232
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
248
using var repositoryContext = CreateRepository(workspace.
Path
, maxConsoleLogCount: 3);
262
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
292
using var repositoryContext = CreateRepository(workspace.
Path
);
296
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
311
using var repositoryContext = CreateRepository(workspace.
Path
);
333
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
447
using var repositoryContext = CreateRepository(workspace.
Path
);
451
using (var connection = new SqliteConnection($"Data Source={GetDatabasePath(workspace.
Path
)};Mode=ReadOnly;Pooling=False"))
463
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
521
using var repositoryContext = CreateRepository(workspace.
Path
);
525
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
554
using var repositoryContext = CreateRepository(workspace.
Path
);
558
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
569
using var repositoryContext = CreateRepository(workspace.
Path
);
594
var databasePath = GetDatabasePath(workspace.
Path
);
595
using (CreateRepository(workspace.
Path
))
621
var databasePath = GetDatabasePath(workspace.
Path
);
651
using var repositoryContext = CreateRepository(workspace.
Path
);
684
var databasePath = GetDatabasePath(workspace.
Path
);
685
using (CreateRepository(workspace.
Path
))
727
var databasePath = GetDatabasePath(workspace.
Path
);
728
using (CreateRepository(workspace.
Path
))
799
var databasePath = GetDatabasePath(workspace.
Path
);
800
using (CreateRepository(workspace.
Path
))
865
var databasePath = GetDatabasePath(workspace.
Path
);
866
using (CreateRepository(workspace.
Path
))
889
var databasePath = GetDatabasePath(workspace.
Path
);
890
using (CreateRepository(workspace.
Path
))
Model\TelemetryExportServiceTests.cs (21)
40
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
108
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
147
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
229
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
267
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
346
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
390
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
440
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
523
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
605
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
687
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
749
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
792
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
841
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
892
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
952
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1036
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1074
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1127
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1188
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1229
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (36)
33
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
94
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
149
using (var repositoryContext = await CreateRepositoryAsync(workspace.
Path
, outgoingPeerResolvers: [outgoingPeerResolver]))
191
using var reopenedContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
206
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
225
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
259
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
277
using var reopenedContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
292
var databasePath = GetDatabasePath(workspace.
Path
);
295
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
317
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
338
var databasePath = GetDatabasePath(workspace.
Path
);
348
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
381
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
406
var databasePath = GetDatabasePath(workspace.
Path
);
409
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
428
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
461
var databasePath = GetDatabasePath(workspace.
Path
);
464
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
498
using var reopenedContext = await CreateRepositoryAsync(workspace.
Path
);
530
var databasePath = GetDatabasePath(workspace.
Path
);
533
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
574
var databasePath = GetDatabasePath(workspace.
Path
);
578
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
666
var databasePath = GetDatabasePath(workspace.
Path
);
672
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
704
var databasePath = GetDatabasePath(workspace.
Path
);
706
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
751
var databasePath = GetDatabasePath(workspace.
Path
);
752
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
814
var databasePath = GetDatabasePath(workspace.
Path
);
817
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
869
var databasePath = GetDatabasePath(workspace.
Path
);
871
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
914
var databasePath = GetDatabasePath(workspace.
Path
);
916
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
, maxTraceCount: 1);
tests\Shared\TemporaryWorkspace.cs (1)
245
var aspireDir = IOPath.Combine(workspace.
Path
, ".aspire");