153 references to Path
Aspire.Dashboard.Tests (153)
Integration\StartupTests.cs (3)
1141
var runsDirectory = DashboardRunStore.GetRunsDirectory(workspace.
Path
);
1155
[DashboardConfigNames.DashboardDataDirectoryName.ConfigKey] = workspace.
Path
,
1234
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
);
382
Assert.False(runDirectory.StartsWith(workspace.
Path
, StringComparison.OrdinalIgnoreCase));
695
var databasePath = Path.Combine(workspace.
Path
, $"malformed-{Guid.NewGuid():N}.db");
996
var runsDirectory = DashboardRunStore.GetRunsDirectory(workspace.
Path
);
1354
var historicalDirectory = Path.Combine(workspace.
Path
, "historical");
1360
var malformedDirectory = Path.Combine(workspace.
Path
, "malformed");
1387
DatabasePath = Path.Combine(workspace.
Path
, "unavailable", DashboardRunStore.DatabaseFileName),
1420
var database = new DashboardSqliteDatabase(Path.Combine(workspace.
Path
, "connection.db"));
1589
DatabasePath = Path.Combine(workspace.
Path
, "incompatible", DashboardRunStore.DatabaseFileName),
1661
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
);
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\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 (38)
30
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
59
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
120
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
175
using (var repositoryContext = await CreateRepositoryAsync(workspace.
Path
, outgoingPeerResolvers: [outgoingPeerResolver]))
217
using var reopenedContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
232
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
251
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
279
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
297
using var reopenedContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
312
var databasePath = GetDatabasePath(workspace.
Path
);
315
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
337
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
358
var databasePath = GetDatabasePath(workspace.
Path
);
368
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
401
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
426
var databasePath = GetDatabasePath(workspace.
Path
);
429
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
448
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
483
var databasePath = GetDatabasePath(workspace.
Path
);
563
var databasePath = GetDatabasePath(workspace.
Path
);
566
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
600
using var reopenedContext = await CreateRepositoryAsync(workspace.
Path
);
632
var databasePath = GetDatabasePath(workspace.
Path
);
635
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
676
var databasePath = GetDatabasePath(workspace.
Path
);
680
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
768
var databasePath = GetDatabasePath(workspace.
Path
);
774
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
806
var databasePath = GetDatabasePath(workspace.
Path
);
808
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
853
var databasePath = GetDatabasePath(workspace.
Path
);
854
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
916
var databasePath = GetDatabasePath(workspace.
Path
);
919
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
971
var databasePath = GetDatabasePath(workspace.
Path
);
973
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
1016
var databasePath = GetDatabasePath(workspace.
Path
);
1018
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");