2 instantiations of SqliteRepositoryTestContext
Aspire.Dashboard.Tests (2)
Shared\SqliteRepositoryTestHelpers.cs (2)
40
return new
SqliteRepositoryTestContext
<SqliteTelemetryRepository>(database, repository);
69
return new
SqliteRepositoryTestContext
<SqliteResourceRepository>(database, repository);
94 references to SqliteRepositoryTestContext
Aspire.Dashboard.Tests (94)
Model\DashboardDataSourceTests.cs (15)
514
using
var
telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
519
using
var
currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options);
572
using
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
577
using
var
activeTelemetryContext = await CreateTelemetryRepositoryAsync(activeRunStore.DatabasePath, options);
580
using
var
currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options);
754
using
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
802
using
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
852
using
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
963
using (
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalDatabasePath, options))
1064
using
var
telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
1080
using
var
resourceContext = CreateResourceRepository(historicalRunStore.DatabasePath);
1235
private static async Task<
SqliteRepositoryTestContext
<SqliteTelemetryRepository>> CreateTelemetryRepositoryAsync(
1239
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(
1262
private static
SqliteRepositoryTestContext
<SqliteResourceRepository> CreateResourceRepository(
1265
var
context = SqliteRepositoryTestHelpers.CreateResourceRepository(
Model\SqliteResourceRepositoryTests.cs (27)
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);
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);
611
using
var
repositoryContext = CreateRepository(workspace.Path);
879
private static
SqliteRepositoryTestContext
<SqliteResourceRepository> CreateRepository(
Model\TelemetryExportServiceTests.cs (23)
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);
1345
private static async Task<
SqliteRepositoryTestContext
<SqliteTelemetryRepository>> CreateRepositoryAsync(
1348
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(
Shared\SqliteRepositoryTestHelpers.cs (2)
15
public static async Task<
SqliteRepositoryTestContext
<SqliteTelemetryRepository>> CreateTelemetryRepositoryAsync(
50
public static
SqliteRepositoryTestContext
<SqliteResourceRepository> CreateResourceRepository(
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (26)
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);
276
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
298
using
var
historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true);
329
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
362
using
var
historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true);
390
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
409
using
var
historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true);
445
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
479
using
var
reopenedContext = await CreateRepositoryAsync(workspace.Path);
514
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
559
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
653
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
687
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
733
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
798
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
852
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
897
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path, maxTraceCount: 1);
949
private static async Task<
SqliteRepositoryTestContext
<SqliteTelemetryRepository>> CreateRepositoryAsync(
957
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (1)
47
SqliteRepositoryTestContext
<SqliteTelemetryRepository> context;