package internal import ( "testing" factory "github.com/tech/sendico/pkg/mlogger/factory" ) func TestNewTaskManagerInternal(t *testing.T) { logger := factory.NewLogger(true) manager := NewTaskManager(logger, nil, nil) if manager == nil { t.Fatal("Expected non-nil TaskManager") } // Test that logger is properly named if manager.logger == nil { t.Error("Expected logger to be set") } } func TestNewAccountManagerInternal(t *testing.T) { logger := factory.NewLogger(true) manager := NewAccountManager( logger, nil, nil, nil, nil, ) if manager == nil { t.Fatal("Expected non-nil AccountManager") } // Test that logger is properly named if manager.logger == nil { t.Error("Expected logger to be set") } } func TestInternalConstructorsWithNilLogger(t *testing.T) { // Test that constructors handle nil logger gracefully taskManager := NewTaskManager(nil, nil, nil) if taskManager == nil { t.Fatal("Expected non-nil TaskManager even with nil logger") } accountManager := NewAccountManager( nil, nil, nil, nil, nil, ) if accountManager == nil { t.Fatal("Expected non-nil AccountManager even with nil logger") } }