Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SMSClientMock ¶
type SMSClientMock struct {
MockSendBulkSMSFn func(ctx context.Context, message string, recipients []string) (*silcomms.BulkSMSResponse, error)
}
SMSClientMock mocks the SILComms client library implementations
func NewSMSClientMock ¶
func NewSMSClientMock() *SMSClientMock
NewSMSClientMock initializes our client mocks
func (SMSClientMock) SendBulkSMS ¶
func (sc SMSClientMock) SendBulkSMS(ctx context.Context, message string, recipients []string) (*silcomms.BulkSMSResponse, error)
SendBulkSMS mocks the implementation of sending bulk SMS
type SMSServiceMock ¶
type SMSServiceMock struct {
MockSendSMSFn func(ctx context.Context, message string, recipients []string) (*silcomms.BulkSMSResponse, error)
}
SMSServiceMock mocks the SILComms SMS service mock methods
func NewSMSServiceMock ¶
func NewSMSServiceMock() *SMSServiceMock
NewSMSServiceMock initializes the mock service
func (*SMSServiceMock) SendSMS ¶
func (m *SMSServiceMock) SendSMS(ctx context.Context, message string, recipients []string) (*silcomms.BulkSMSResponse, error)
SendSMS mocks the SILComms sending SMS service method
Click to show internal directories.
Click to hide internal directories.