elsa-core/test/integration/Elsa.ExternalAuthentication.IntegrationTests/Persistence/ExternalAuthenticationPersistenceRegistrationTests.cs
2026-07-25 10:51:36 +02:00

21 lines
705 B
C#

using Elsa.ExternalAuthentication.Contracts;
using Elsa.ExternalAuthentication.Services;
using Microsoft.Extensions.DependencyInjection;
namespace Elsa.ExternalAuthentication.IntegrationTests.Persistence;
public class ExternalAuthenticationPersistenceRegistrationTests
{
[Fact]
public void PersistenceRegistrationSuppliesTheDefaultHandleHasher()
{
var services = new ServiceCollection();
services.AddExternalAuthenticationEntityFrameworkCore();
using var serviceProvider = services.BuildServiceProvider();
Assert.IsType<HmacExternalAuthenticationHandleHasher>(
serviceProvider.GetRequiredService<IExternalAuthenticationHandleHasher>());
}
}