2 instantiations of SqliteRepositoryTestContext
Aspire.Dashboard.Tests (2)
Shared\SqliteRepositoryTestHelpers.cs (2)
148
return new
SqliteRepositoryTestContext
<SqliteTelemetryRepository>(database, repository);
174
return new
SqliteRepositoryTestContext
<SqliteResourceRepository>(database, repository);
273 references to SqliteRepositoryTestContext
Aspire.Dashboard.Tests (273)
Model\DashboardDataSourceTests.cs (15)
690
using
var
telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
695
using
var
currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options);
902
using
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
907
using
var
activeTelemetryContext = await CreateTelemetryRepositoryAsync(activeRunStore.DatabasePath, options);
910
using
var
currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options);
1103
using
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
1151
using
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
1201
using
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
1312
using (
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalDatabasePath, options))
1413
using
var
telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
1429
using
var
resourceContext = CreateResourceRepository(historicalRunStore.DatabasePath);
1623
private static async Task<
SqliteRepositoryTestContext
<SqliteTelemetryRepository>> CreateTelemetryRepositoryAsync(
1627
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(
1650
private static
SqliteRepositoryTestContext
<SqliteResourceRepository> CreateResourceRepository(
1653
var
context = SqliteRepositoryTestHelpers.CreateResourceRepository(
Model\GenAIVisualizerDialogViewModelTests.cs (30)
27
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
68
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
127
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
225
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
294
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
387
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
443
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
493
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
617
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
691
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
812
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
857
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
934
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1011
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1110
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1208
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1252
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1295
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1402
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1475
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1577
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1698
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1736
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1835
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1919
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1990
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
2075
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
2166
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
2252
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
2314
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
Model\ResourceMenuBuilderTests.cs (10)
89
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
120
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(outgoingPeerResolvers: [outgoingPeerResolver]);
179
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
209
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
267
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
302
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
351
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
389
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
434
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
477
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
Model\SpanDetailsViewModelTests.cs (1)
22
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
Model\SqliteResourceRepositoryTests.cs (29)
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);
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);
651
using
var
repositoryContext = CreateRepository(workspace.Path);
941
private static
SqliteRepositoryTestContext
<SqliteResourceRepository> CreateRepository(
Model\StructuredLogsPageViewModelTests.cs (13)
23
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
35
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
47
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
59
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
71
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
84
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
96
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
108
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
122
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
136
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
156
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
176
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
196
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
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(
Model\TelemetryImportServiceTests.cs (17)
39
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
59
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
75
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
101
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
125
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
149
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
192
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
229
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
247
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
265
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
283
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
301
using
var
sourceRepositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
329
using
var
targetRepositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
354
using
var
sourceRepositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
388
using
var
targetRepositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
433
using
var
sourceRepositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
461
using
var
targetRepositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
Shared\SqliteRepositoryTestHelpers.cs (6)
15
public static
SqliteRepositoryTestContext
<SqliteTelemetryRepository> CreateTemporaryTelemetryRepository(
41
var
context = CreateTelemetryRepository(
65
public static
SqliteRepositoryTestContext
<SqliteTelemetryRepository> CreateTelemetryRepository(
99
public static async Task<
SqliteRepositoryTestContext
<SqliteTelemetryRepository>> CreateTelemetryRepositoryAsync(
133
private static
SqliteRepositoryTestContext
<SqliteTelemetryRepository> CreateTelemetryRepository(
151
public static
SqliteRepositoryTestContext
<SqliteResourceRepository> CreateResourceRepository(
TelemetryApiServiceTests.cs (41)
26
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(subscriptionMinExecuteInterval: TimeSpan.Zero);
48
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(subscriptionMinExecuteInterval: TimeSpan.Zero);
74
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
89
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
113
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
141
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
167
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
193
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
214
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
235
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
257
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
286
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
323
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
345
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(maxLogCount: totalLogs);
370
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
385
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
401
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
423
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
452
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
476
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
502
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
522
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
546
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
566
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
584
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
602
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
620
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
638
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
654
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
672
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
694
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
712
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
836
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
859
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
896
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
929
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
964
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
991
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1018
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1046
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1070
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
TelemetryRepositoryTests\HistogramTests.cs (38)
36
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
46
using (
var
writer = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath))
61
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath, readOnly: true);
106
using (
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
113
using (
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
118
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, readOnly: true);
182
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(loggerFactory: loggerFactory);
214
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(maxMetricsCount: 1);
255
using (
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
265
using (
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
273
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, readOnly: true);
340
using (
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
348
using
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath);
419
using (
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
432
using
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, readOnly: true);
476
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(maxMetricsCount: 3);
526
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(maxMetricsCount: 3);
595
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(maxMetricsCount: 1);
656
using (
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, dashboardOptions: options))
665
using
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, dashboardOptions: options);
710
using (
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, dashboardOptions: options))
727
using (
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, dashboardOptions: options))
741
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, readOnly: true);
782
using (
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
800
using (
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
813
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, readOnly: true);
1037
using (
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
1044
using (
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
1052
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, readOnly: true);
1135
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(maxMetricsCount: 2);
1237
using (
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
1248
using (
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
1275
using (
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
1288
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, readOnly: true);
1396
using (
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
1405
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, readOnly: true);
1524
using (
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath))
1532
using
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath);
TelemetryRepositoryTests\MetricsTests.cs (13)
1713
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1720
using (
var
writer = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath))
1740
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath, readOnly: true);
1779
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1809
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1821
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath, readOnly: true);
1830
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1889
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1901
using (
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath))
1905
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath, readOnly: true);
1930
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1958
using (
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath))
1978
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath, readOnly: true);
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (28)
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);
286
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
308
using
var
historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true);
339
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
372
using
var
historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true);
400
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
419
using
var
historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true);
481
using (
var
repositoryContext = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, dashboardOptions: options))
489
using
var
reopenedContext = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, dashboardOptions: options);
537
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
571
using
var
reopenedContext = await CreateRepositoryAsync(workspace.Path);
606
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
651
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
745
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
779
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
825
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
890
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
944
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
989
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path, maxTraceCount: 1);
1041
private static async Task<
SqliteRepositoryTestContext
<SqliteTelemetryRepository>> CreateRepositoryAsync(
1049
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(
TelemetryRepositoryTests\TelemetryReceiptTests.cs (8)
29
using
var
context = SqliteRepositoryTestHelpers.CreateTelemetryRepository(path);
36
using (
var
resumed = SqliteRepositoryTestHelpers.CreateTelemetryRepository(path))
51
using
var
restarted = SqliteRepositoryTestHelpers.CreateTelemetryRepository(path);
58
using
var
context = SqliteRepositoryTestHelpers.CreateTelemetryRepository(Path.Combine(_workspace.Path, "dashboard.db"));
78
using
var
context = SqliteRepositoryTestHelpers.CreateTelemetryRepository(
89
using
var
context = SqliteRepositoryTestHelpers.CreateTelemetryRepository(Path.Combine(_workspace.Path, "dashboard.db"));
110
using
var
context = SqliteRepositoryTestHelpers.CreateTelemetryRepository(path);
128
using
var
context = SqliteRepositoryTestHelpers.CreateTelemetryRepository(Path.Combine(_workspace.Path, "dashboard.db"));
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (1)
43
SqliteRepositoryTestContext
<SqliteTelemetryRepository> context;