150 references to Path
Aspire.Dashboard.Tests (150)
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 (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));
651
var databasePath = Path.Combine(workspace.
Path
, $"malformed-{Guid.NewGuid():N}.db");
952
var runsDirectory = DashboardRunStore.GetRunsDirectory(workspace.
Path
);
1310
var historicalDirectory = Path.Combine(workspace.
Path
, "historical");
1316
var malformedDirectory = Path.Combine(workspace.
Path
, "malformed");
1343
DatabasePath = Path.Combine(workspace.
Path
, "unavailable", DashboardRunStore.DatabaseFileName),
1376
var database = new DashboardSqliteDatabase(Path.Combine(workspace.
Path
, "connection.db"));
1545
DatabasePath = Path.Combine(workspace.
Path
, "incompatible", DashboardRunStore.DatabaseFileName),
1617
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)
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
))
887
var databasePath = GetDatabasePath(workspace.
Path
);
888
using (CreateRepository(workspace.
Path
))
911
var databasePath = GetDatabasePath(workspace.
Path
);
912
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 (37)
30
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
91
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
146
using (var repositoryContext = await CreateRepositoryAsync(workspace.
Path
, outgoingPeerResolvers: [outgoingPeerResolver]))
188
using var reopenedContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
203
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
222
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
250
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
268
using var reopenedContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
283
var databasePath = GetDatabasePath(workspace.
Path
);
286
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
308
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
329
var databasePath = GetDatabasePath(workspace.
Path
);
339
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
372
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
397
var databasePath = GetDatabasePath(workspace.
Path
);
400
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
419
using var historicalContext = await CreateRepositoryAsync(workspace.
Path
, readOnly: true);
454
var databasePath = GetDatabasePath(workspace.
Path
);
534
var databasePath = GetDatabasePath(workspace.
Path
);
537
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
571
using var reopenedContext = await CreateRepositoryAsync(workspace.
Path
);
603
var databasePath = GetDatabasePath(workspace.
Path
);
606
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
647
var databasePath = GetDatabasePath(workspace.
Path
);
651
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
739
var databasePath = GetDatabasePath(workspace.
Path
);
745
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
777
var databasePath = GetDatabasePath(workspace.
Path
);
779
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
824
var databasePath = GetDatabasePath(workspace.
Path
);
825
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
887
var databasePath = GetDatabasePath(workspace.
Path
);
890
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
942
var databasePath = GetDatabasePath(workspace.
Path
);
944
using var repositoryContext = await CreateRepositoryAsync(workspace.
Path
);
987
var databasePath = GetDatabasePath(workspace.
Path
);
989
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");