Files
git.stella-ops.org/src/__Libraries/__Tests/StellaOps.Cryptography.Tests/EidasCapabilityDetectionTests.SignerRetrieval.cs

22 lines
645 B
C#

using FluentAssertions;
using StellaOps.Cryptography;
using Xunit;
namespace StellaOps.Cryptography.Tests;
public sealed partial class EidasCapabilityDetectionTests
{
[Fact]
public void GetSigner_ReturnsEidasSigner()
{
var provider = CreateProviderWithKey("test-key-local");
var keyRef = new CryptoKeyReference("test-key-local");
var signer = provider.GetSigner("ECDSA-P256", keyRef);
signer.Should().NotBeNull();
signer.KeyId.Should().Be("test-key-local");
signer.AlgorithmId.Should().Be("ECDSA-P256");
_output.WriteLine("✓ GetSigner returns valid EidasSigner");
}
}