155 references to Path
Aspire.Dashboard.Tests (155)
Integration\StartupTests.cs (3)
1185
var runsDirectory = DashboardRunStore.GetRunsDirectory(workspace.
Path
);
1199
[DashboardConfigNames.DashboardDataDirectoryName.ConfigKey] = workspace.
Path
,
1278
data[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 (17)
41
var expectedRunsDirectory = Path.Combine(workspace.
Path
, "runs");
44
Assert.False(Directory.Exists(Path.Combine(workspace.
Path
, applicationDirectoryName)));
56
var expectedResumesDirectory = Path.Combine(workspace.
Path
, "resumes");
86
? [DashboardRunStore.GetRunsDirectory(workspace.
Path
)]
89
DashboardRunStore.GetResumesDirectory(workspace.
Path
),
90
DashboardRunStore.GetApplicationDirectory(workspace.
Path
, "My Dashboard")
147
var existingRunDirectory = Path.Combine(DashboardRunStore.GetRunsDirectory(workspace.
Path
), "20260720T123456789Z");
165
var runsDirectory = DashboardRunStore.GetRunsDirectory(workspace.
Path
);
383
Assert.False(runDirectory.StartsWith(workspace.
Path
, StringComparison.OrdinalIgnoreCase));
698
var databasePath = Path.Combine(workspace.
Path
, $"malformed-{Guid.NewGuid():N}.db");
999
var runsDirectory = DashboardRunStore.GetRunsDirectory(workspace.
Path
);
1360
var historicalDirectory = Path.Combine(workspace.
Path
, "historical");
1366
var malformedDirectory = Path.Combine(workspace.
Path
, "malformed");
1393
DatabasePath = Path.Combine(workspace.
Path
, "unavailable", DashboardRunStore.DatabaseFileName),
1426
var database = new DashboardSqliteDatabase(Path.Combine(workspace.
Path
, "connection.db"));
1595
DatabasePath = Path.Combine(workspace.
Path
, "incompatible", DashboardRunStore.DatabaseFileName),
1667
Directory = workspace.
Path
,
Model\DashboardSqliteDatabaseTests.cs (11)
27
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
40
var databasePath = Path.Combine(_workspace.
Path
, "dashboard.db");
59
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
77
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
109
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
132
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
149
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
168
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
188
using var database = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "dashboard.db"), pooling: false);
209
using var observedDatabase = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "observed.db"), pooling: false);
210
using var otherDatabase = new DashboardSqliteDatabase(Path.Combine(_workspace.
Path
, "other.db"), pooling: false);
Model\SqliteResourceRepositoryTests.cs (42)
24
using var repositoryContext = CreateRepository(workspace.
Path
);
36
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
44
using var repositoryContext = CreateRepository(workspace.
Path
);
67
using var repositoryContext = CreateRepository(workspace.
Path
);
99
using var repositoryContext = CreateRepository(workspace.
Path
);
113
using var restartedRepositoryContext = CreateRepository(workspace.
Path
);
119
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
138
using var repositoryContext = CreateRepository(workspace.
Path
);
158
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
184
using var repositoryContext = CreateRepository(workspace.
Path
);
194
using var restartedRepositoryContext = CreateRepository(workspace.
Path
);
204
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
229
using var repositoryContext = CreateRepository(workspace.
Path
);
233
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
249
using var repositoryContext = CreateRepository(workspace.
Path
, maxConsoleLogCount: 3);
263
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
293
using var repositoryContext = CreateRepository(workspace.
Path
);
297
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
312
using var repositoryContext = CreateRepository(workspace.
Path
);
334
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
448
using var repositoryContext = CreateRepository(workspace.
Path
);
452
using (var connection = new SqliteConnection($"Data Source={GetDatabasePath(workspace.
Path
)};Mode=ReadOnly;Pooling=False"))
464
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
522
using var repositoryContext = CreateRepository(workspace.
Path
);
526
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
555
using var repositoryContext = CreateRepository(workspace.
Path
);
559
using var historicalContext = CreateRepository(workspace.
Path
, readOnly: true);
570
using var repositoryContext = CreateRepository(workspace.
Path
);
595
var databasePath = GetDatabasePath(workspace.
Path
);
596
using (CreateRepository(workspace.
Path
))
622
var databasePath = GetDatabasePath(workspace.
Path
);
652
using var repositoryContext = CreateRepository(workspace.
Path
);
685
var databasePath = GetDatabasePath(workspace.
Path
);
686
using (CreateRepository(workspace.
Path
))
728
var databasePath = GetDatabasePath(workspace.
Path
);
729
using (CreateRepository(workspace.
Path
))
800
var databasePath = GetDatabasePath(workspace.
Path
);
801
using (CreateRepository(workspace.
Path
))
888
var databasePath = GetDatabasePath(workspace.
Path
);
889
using (CreateRepository(workspace.
Path
))
912
var databasePath = GetDatabasePath(workspace.
Path
);
913
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
);
843
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
894
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
954
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1038
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1076
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1129
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1190
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1231
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
TelemetryRepositoryTests\HistogramTests.cs (11)
98
var databasePath = Path.Combine(workspace.
Path
, "dashboard.db");
251
var databasePath = Path.Combine(workspace.
Path
, "dashboard.db");
339
var databasePath = Path.Combine(workspace.
Path
, "dashboard.db");
418
var databasePath = Path.Combine(workspace.
Path
, "dashboard.db");
648
var databasePath = Path.Combine(workspace.
Path
, "dashboard.db");
696
var databasePath = Path.Combine(workspace.
Path
, "dashboard.db");
772
var databasePath = Path.Combine(workspace.
Path
, "dashboard.db");
1024
var databasePath = Path.Combine(workspace.
Path
, "dashboard.db");
1226
var databasePath = Path.Combine(workspace.
Path
, "dashboard.db");
1390
var databasePath = Path.Combine(workspace.
Path
, "dashboard.db");
1523
var databasePath = Path.Combine(workspace.
Path
, "dashboard.db");
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (40)
37
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
113
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
145
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
216
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
277
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
332
using (var repositoryContext = await CreateRepositoryAsync(workspace.
Path
, outgoingPeerResolvers: [outgoingPeerResolver]))
374
using var reopenedContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
389
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
408
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
436
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
454
using var reopenedContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
469
var databasePath = GetDatabasePath(workspace.
Path
);
472
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
494
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
515
var databasePath = GetDatabasePath(workspace.
Path
);
525
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
558
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
583
var databasePath = GetDatabasePath(workspace.
Path
);
586
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
605
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
640
var databasePath = GetDatabasePath(workspace.
Path
);
720
var databasePath = GetDatabasePath(workspace.
Path
);
723
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
757
using var reopenedContext = await CreateRepositoryAsync(workspace.
Path
);
789
var databasePath = GetDatabasePath(workspace.
Path
);
792
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
833
var databasePath = GetDatabasePath(workspace.
Path
);
837
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
925
var databasePath = GetDatabasePath(workspace.
Path
);
931
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
963
var databasePath = GetDatabasePath(workspace.
Path
);
965
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1010
var databasePath = GetDatabasePath(workspace.
Path
);
1011
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1073
var databasePath = GetDatabasePath(workspace.
Path
);
1076
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1128
var databasePath = GetDatabasePath(workspace.
Path
);
1130
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1173
var databasePath = GetDatabasePath(workspace.
Path
);
1175
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
, maxTraceCount: 1);
TelemetryRepositoryTests\TelemetryReceiptTests.cs (6)
28
var path = Path.Combine(_workspace.
Path
, "dashboard.db");
58
using var context = SqliteRepositoryTestHelpers.CreateTelemetryRepository(Path.Combine(_workspace.
Path
, "dashboard.db"));
79
Path.Combine(_workspace.
Path
, "dashboard.db"), pauseManager: pauseManager);
89
using var context = SqliteRepositoryTestHelpers.CreateTelemetryRepository(Path.Combine(_workspace.
Path
, "dashboard.db"));
109
var path = Path.Combine(_workspace.
Path
, "dashboard.db");
128
using var context = SqliteRepositoryTestHelpers.CreateTelemetryRepository(Path.Combine(_workspace.
Path
, "dashboard.db"));
tests\Shared\TemporaryWorkspace.cs (1)
218
var aspireDir = IOPath.Combine(workspace.
Path
, ".aspire");