3 instantiations of ContentSnapshot
Aspire.Hosting.Tests (3)
Pipelines\PipelineOutputResolutionTests.cs (3)
62Assert.Equal(new(workspace.Path, "before"), comparison.Before); 63Assert.Equal(new(workspace.Path, "after"), comparison.After); 244var snapshot = new ContentSnapshot(outputDirectory,
13 references to ContentSnapshot
Aspire.Hosting.Tests (13)
Pipelines\PipelineOutputResolutionTests.cs (13)
38builder.Services.AddSingleton<IPipelineOutputSnapshotter<ContentSnapshot>>(Create); 42builder.Services.AddTransient<IPipelineOutputSnapshotter<ContentSnapshot>>(Create); 44builder.Services.AddSingleton<IPipelineOutputComparer<ContentSnapshot>>(comparer); 46builder.WithOutputDiffing<ContentSnapshot, ContentSnapshotter, ContentComparer>(); 236private sealed class ContentSnapshotter : IPipelineOutputSnapshotter<ContentSnapshot>, IDisposable 238public List<ContentSnapshot> Captures { get; } = []; 241public async Task<ContentSnapshot> CaptureAsync(string outputDirectory, CancellationToken ct) 244var snapshot = new ContentSnapshot(outputDirectory, 253private sealed class ContentComparer : IPipelineOutputComparer<ContentSnapshot> 255public List<(ContentSnapshot Before, ContentSnapshot After)> Comparisons { get; } = []; 257public Task<IReadOnlyList<PipelineOutputChange>> CompareAsync(ContentSnapshot before, ContentSnapshot after, CancellationToken ct)