File: Utils\TestDeveloperCertificateService.cs
Web Access
Project: src\tests\Aspire.Hosting.Tests\Aspire.Hosting.Tests.csproj (Aspire.Hosting.Tests)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Collections.Immutable;
using System.Security.Cryptography.X509Certificates;
 
namespace Aspire.Hosting.Tests.Utils;
 
public sealed class TestDeveloperCertificateService(List<X509Certificate2> certificates, bool supportsContainerTrust) : IDeveloperCertificateService
{
    public ImmutableList<X509Certificate2> Certificates { get; } = certificates.ToImmutableList();
 
    public bool SupportsContainerTrust => supportsContainerTrust;
}