package radar

import (
	"context"
	"testing"
)

func TestPrimaryRouteRequiresAuthenticatedServiceContext(t *testing.T) {
	ctx := context.Background()
	assign := NewAssignWatchProductLogic(ctx, nil)
	primary := NewSetPrimaryProductLogic(ctx, nil)

	if _, err := assign.AssignWatchProduct(nil); err == nil {
		t.Fatal("assign product unexpectedly succeeded without an authenticated service context")
	}
	if _, err := primary.SetPrimaryProduct(nil); err == nil {
		t.Fatal("set primary product unexpectedly succeeded without an authenticated service context")
	}
}
