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