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