package payment

import (
	"testing"

	"kra/internal/biz"
)

func TestEverySupportedProviderHasAdapter(t *testing.T) {
	for _, provider := range biz.SupportedPaymentProviders {
		t.Run(provider, func(t *testing.T) {
			adapter, err := New(provider)
			if err != nil {
				t.Fatalf("New(%q): %v", provider, err)
			}
			if adapter == nil {
				t.Fatalf("New(%q) returned a nil adapter", provider)
			}
		})
	}
}
