package work import ( "testing" "tercul/internal/app/authz" "github.com/stretchr/testify/assert" ) func TestNewService(t *testing.T) { // Arrange mockRepo := &mockWorkRepository{} mockSearchClient := &mockSearchClient{} mockAuthzSvc := &authz.Service{} mockAnalyticsSvc := &mockAnalyticsService{} // Act service := NewService(mockRepo, mockSearchClient, mockAuthzSvc, mockAnalyticsSvc) // Assert assert.NotNil(t, service, "The new service should not be nil") assert.NotNil(t, service.Commands, "The service Commands should not be nil") assert.NotNil(t, service.Queries, "The service Queries should not be nil") }