19 lines
650 B
C#
19 lines
650 B
C#
using LiteCharms.Features.Api.Configuration;
|
|
using LiteCharms.Features.Tests.Common;
|
|
|
|
namespace LiteCharms.Features.Tests;
|
|
|
|
public sealed class PayfastFeatureTests(Fixture fixture) : IClassFixture<Fixture>
|
|
{
|
|
private readonly PayfastSettings payfastSettings = fixture.Services.GetRequiredService<IOptions<PayfastSettings>>().Value;
|
|
|
|
[IntegrationFact]
|
|
public void PayfastSettings_ShouldFail_IfNotLoaded()
|
|
{
|
|
Assert.NotEmpty(payfastSettings.CheckoutUrl!);
|
|
Assert.NotEmpty(payfastSettings.MerchantId!);
|
|
Assert.NotEmpty(payfastSettings.MerchantKey!);
|
|
Assert.NotEmpty(payfastSettings.Passphrase!);
|
|
}
|
|
}
|