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);
283 references to SqliteRepositoryTestContext
Aspire.Dashboard.Tests (283)
DashboardEndpointsBuilderTests.cs (1)
33
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
Model\DashboardDataSourceTests.cs (15)
737
using
var
telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
742
using
var
currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options);
949
using
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
954
using
var
activeTelemetryContext = await CreateTelemetryRepositoryAsync(activeRunStore.DatabasePath, options);
957
using
var
currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options);
1150
using
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
1200
using
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
1250
using
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
1362
using (
var
historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalDatabasePath, options))
1463
using
var
telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options);
1479
using
var
resourceContext = CreateResourceRepository(historicalRunStore.DatabasePath);
1673
private static async Task<
SqliteRepositoryTestContext
<SqliteTelemetryRepository>> CreateTelemetryRepositoryAsync(
1677
var
context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(
1700
private static
SqliteRepositoryTestContext
<SqliteResourceRepository> CreateResourceRepository(
1703
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 (12)
87
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
148
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
168
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
199
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(outgoingPeerResolvers: [outgoingPeerResolver]);
258
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
288
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
346
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
381
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
430
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
468
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
513
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
556
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
Model\SpanDetailsViewModelTests.cs (1)
22
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
Model\SqliteResourceRepositoryTests.cs (29)
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);
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);
652
using
var
repositoryContext = CreateRepository(workspace.Path);
942
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);
843
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
894
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
954
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
1038
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
1076
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
1129
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
1190
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
1231
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
1347
private static async Task<
SqliteRepositoryTestContext
<SqliteTelemetryRepository>> CreateRepositoryAsync(
1350
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 (45)
26
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(subscriptionMinExecuteInterval: TimeSpan.Zero);
48
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(subscriptionMinExecuteInterval: TimeSpan.Zero);
71
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(subscriptionMinExecuteInterval: TimeSpan.Zero);
106
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
121
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
138
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
159
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
185
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
211
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
232
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
255
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
283
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
305
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
334
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
374
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
398
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
421
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
455
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(maxLogCount: totalLogs);
480
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
495
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
511
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
533
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
562
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
586
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
612
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
632
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
656
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
676
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
694
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
712
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
730
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
748
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
764
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
782
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
804
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
822
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
962
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
985
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1022
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1055
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1090
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1117
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1144
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1172
using
var
repositoryContext = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
1196
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)
2115
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
2122
using (
var
writer = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath))
2142
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath, readOnly: true);
2181
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
2211
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
2223
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath, readOnly: true);
2232
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
2291
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
2303
using (
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath))
2307
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath, readOnly: true);
2332
using
var
context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository();
2360
using (
var
reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath))
2380
using
var
readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath, readOnly: true);
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (31)
37
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
113
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
145
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
216
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
277
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
332
using (
var
repositoryContext = await CreateRepositoryAsync(workspace.Path, outgoingPeerResolvers: [outgoingPeerResolver]))
374
using
var
reopenedContext = await CreateRepositoryAsync(workspace.Path, readOnly: true);
389
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
408
using
var
historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true);
436
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
454
using
var
reopenedContext = await CreateRepositoryAsync(workspace.Path, readOnly: true);
472
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
494
using
var
historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true);
525
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
558
using
var
historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true);
586
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
605
using
var
historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true);
667
using (
var
repositoryContext = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, dashboardOptions: options))
675
using
var
reopenedContext = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, dashboardOptions: options);
723
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
757
using
var
reopenedContext = await CreateRepositoryAsync(workspace.Path);
792
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
837
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
931
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
965
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
1011
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
1076
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
1130
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path);
1175
using
var
repositoryContext = await CreateRepositoryAsync(workspace.Path, maxTraceCount: 1);
1227
private static async Task<
SqliteRepositoryTestContext
<SqliteTelemetryRepository>> CreateRepositoryAsync(
1235
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;