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