2 instantiations of SqliteRepositoryTestContext
Aspire.Dashboard.Tests (2)
Shared\SqliteRepositoryTestHelpers.cs (2)
148return new SqliteRepositoryTestContext<SqliteTelemetryRepository>(database, repository); 174return new SqliteRepositoryTestContext<SqliteResourceRepository>(database, repository);
274 references to SqliteRepositoryTestContext
Aspire.Dashboard.Tests (274)
Model\DashboardDataSourceTests.cs (15)
734using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 739using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options); 946using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 951using var activeTelemetryContext = await CreateTelemetryRepositoryAsync(activeRunStore.DatabasePath, options); 954using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options); 1147using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1195using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1245using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1356using (var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalDatabasePath, options)) 1457using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1473using var resourceContext = CreateResourceRepository(historicalRunStore.DatabasePath); 1667private static async Task<SqliteRepositoryTestContext<SqliteTelemetryRepository>> CreateTelemetryRepositoryAsync( 1671var context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync( 1694private static SqliteRepositoryTestContext<SqliteResourceRepository> CreateResourceRepository( 1697var 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)
24using var repositoryContext = CreateRepository(workspace.Path); 36using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 44using var repositoryContext = CreateRepository(workspace.Path); 67using var repositoryContext = CreateRepository(workspace.Path); 99using var repositoryContext = CreateRepository(workspace.Path); 113using var restartedRepositoryContext = CreateRepository(workspace.Path); 119using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 138using var repositoryContext = CreateRepository(workspace.Path); 158using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 184using var repositoryContext = CreateRepository(workspace.Path); 194using var restartedRepositoryContext = CreateRepository(workspace.Path); 204using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 229using var repositoryContext = CreateRepository(workspace.Path); 233using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 249using var repositoryContext = CreateRepository(workspace.Path, maxConsoleLogCount: 3); 263using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 293using var repositoryContext = CreateRepository(workspace.Path); 297using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 312using var repositoryContext = CreateRepository(workspace.Path); 334using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 448using var repositoryContext = CreateRepository(workspace.Path); 464using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 522using var repositoryContext = CreateRepository(workspace.Path); 526using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 555using var repositoryContext = CreateRepository(workspace.Path); 559using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 570using var repositoryContext = CreateRepository(workspace.Path); 652using var repositoryContext = CreateRepository(workspace.Path); 942private 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)
2107using var context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(); 2114using (var writer = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath)) 2134using var readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath, readOnly: true); 2173using var context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(); 2203using var context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(); 2215using var readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath, readOnly: true); 2224using var context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(); 2283using var context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(); 2295using (var reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath)) 2299using var readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath, readOnly: true); 2324using var context = SqliteRepositoryTestHelpers.CreateTemporaryTelemetryRepository(); 2352using (var reopened = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath)) 2372using var readOnly = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(context.Database.DatabasePath, readOnly: true);
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (29)
30using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 59using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 120using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 175using (var repositoryContext = await CreateRepositoryAsync(workspace.Path, outgoingPeerResolvers: [outgoingPeerResolver])) 217using var reopenedContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 232using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 251using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 279using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 297using var reopenedContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 315using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 337using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 368using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 401using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 429using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 448using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 510using (var repositoryContext = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, dashboardOptions: options)) 518using var reopenedContext = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(databasePath, dashboardOptions: options); 566using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 600using var reopenedContext = await CreateRepositoryAsync(workspace.Path); 635using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 680using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 774using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 808using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 854using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 919using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 973using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 1018using var repositoryContext = await CreateRepositoryAsync(workspace.Path, maxTraceCount: 1); 1070private static async Task<SqliteRepositoryTestContext<SqliteTelemetryRepository>> CreateRepositoryAsync( 1078var 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;