package system

import (
	"testing"

	"kra/internal/service/dto"
)

func TestAnnouncementDomainUsesAuthenticatedUser(t *testing.T) {
	value := announcementDO(&dto.AnnouncementRequest{Title: "notice"}, 42)
	if value.UserID == nil || *value.UserID != 42 {
		t.Fatalf("announcement user = %#v, want 42", value.UserID)
	}
}
