2 instantiations of SqliteRepositoryTestContext
Aspire.Dashboard.Tests (2)
Shared\SqliteRepositoryTestHelpers.cs (2)
40return new SqliteRepositoryTestContext<SqliteTelemetryRepository>(database, repository); 69return new SqliteRepositoryTestContext<SqliteResourceRepository>(database, repository);
94 references to SqliteRepositoryTestContext
Aspire.Dashboard.Tests (94)
Model\DashboardDataSourceTests.cs (15)
514using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 519using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options); 572using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 577using var activeTelemetryContext = await CreateTelemetryRepositoryAsync(activeRunStore.DatabasePath, options); 580using var currentTelemetryContext = await CreateTelemetryRepositoryAsync(currentRunStore.DatabasePath, options); 754using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 802using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 852using var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 963using (var historicalTelemetryContext = await CreateTelemetryRepositoryAsync(historicalDatabasePath, options)) 1064using var telemetryContext = await CreateTelemetryRepositoryAsync(historicalRunStore.DatabasePath, options); 1080using var resourceContext = CreateResourceRepository(historicalRunStore.DatabasePath); 1235private static async Task<SqliteRepositoryTestContext<SqliteTelemetryRepository>> CreateTelemetryRepositoryAsync( 1239var context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync( 1262private static SqliteRepositoryTestContext<SqliteResourceRepository> CreateResourceRepository( 1265var context = SqliteRepositoryTestHelpers.CreateResourceRepository(
Model\SqliteResourceRepositoryTests.cs (27)
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); 252using var repositoryContext = CreateRepository(workspace.Path); 256using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 271using var repositoryContext = CreateRepository(workspace.Path); 293using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 407using var repositoryContext = CreateRepository(workspace.Path); 423using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 481using var repositoryContext = CreateRepository(workspace.Path); 485using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 514using var repositoryContext = CreateRepository(workspace.Path); 518using var historicalContext = CreateRepository(workspace.Path, readOnly: true); 529using var repositoryContext = CreateRepository(workspace.Path); 611using var repositoryContext = CreateRepository(workspace.Path); 879private static SqliteRepositoryTestContext<SqliteResourceRepository> CreateRepository(
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(
Shared\SqliteRepositoryTestHelpers.cs (2)
15public static async Task<SqliteRepositoryTestContext<SqliteTelemetryRepository>> CreateTelemetryRepositoryAsync( 50public static SqliteRepositoryTestContext<SqliteResourceRepository> CreateResourceRepository(
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (26)
33using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 75using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 130using (var repositoryContext = await CreateRepositoryAsync(workspace.Path, outgoingPeerResolvers: [outgoingPeerResolver])) 172using var reopenedContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 187using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 206using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 240using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 258using var reopenedContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 276using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 298using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 329using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 362using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 390using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 409using var historicalContext = await CreateRepositoryAsync(workspace.Path, readOnly: true); 445using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 479using var reopenedContext = await CreateRepositoryAsync(workspace.Path); 514using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 559using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 653using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 687using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 733using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 798using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 852using var repositoryContext = await CreateRepositoryAsync(workspace.Path); 897using var repositoryContext = await CreateRepositoryAsync(workspace.Path, maxTraceCount: 1); 949private static async Task<SqliteRepositoryTestContext<SqliteTelemetryRepository>> CreateRepositoryAsync( 957var context = await SqliteRepositoryTestHelpers.CreateTelemetryRepositoryAsync(
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (1)
47SqliteRepositoryTestContext<SqliteTelemetryRepository> context;