using KArtSell.Modules.ModelOperations.PortfolioReconciliation;

namespace KArtSell.ModelOperations.UnitTests;

public sealed class ReconciliationRequestValidatorTests
{
    [Fact]
    public void Missing_idempotency_key_is_rejected()
    {
        Assert.False(ReconcileTradeRequestContract.HasIdempotencyKey(new ReconcileTradeRequest()));
    }

    [Fact]
    public void Supplied_idempotency_key_is_accepted()
    {
        Assert.True(ReconcileTradeRequestContract.HasIdempotencyKey(new ReconcileTradeRequest { IdempotencyKey = "reconcile-20260812-001" }));
    }
}
