package httpx_test

import (
	"testing"

	"github.com/stretchr/testify/require"
	"senlinai-agent/backend/internal/config"
	"senlinai-agent/backend/internal/httpx"
	"senlinai-agent/backend/internal/logic/inbox"
	"senlinai-agent/backend/internal/logic/projects"
)

func TestProjectAndInboxRoutesRegisterTogether(t *testing.T) {
	require.NotPanics(t, func() {
		httpx.NewProtectedRouter(
			config.Config{Env: "test"},
			func(token string) (uint, error) { return 1, nil },
			projects.NewHandler(projects.NewService()),
			inbox.NewHandler(inbox.NewService(inbox.StaticAnalyzer{})),
		)
	})
}
