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