-
Notifications
You must be signed in to change notification settings - Fork 14
/
sms.go
37 lines (28 loc) · 1.09 KB
/
sms.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package mocks
import (
"github.com/latolukasz/beeorm"
"github.com/stretchr/testify/mock"
errorlogger "github.com/coretrix/hitrix/service/component/error_logger"
"github.com/coretrix/hitrix/service/component/sms"
)
type FakeSMSSender struct {
mock.Mock
}
func (f *FakeSMSSender) SendOTPSMS(_ *beeorm.Engine, _ errorlogger.ErrorLogger, otp *sms.OTP) error {
return f.Called(otp).Error(0)
}
func (f *FakeSMSSender) SendOTPCallout(_ *beeorm.Engine, _ errorlogger.ErrorLogger, otp *sms.OTP) error {
return f.Called(otp).Error(0)
}
func (f *FakeSMSSender) SendMessage(_ *beeorm.Engine, _ errorlogger.ErrorLogger, message *sms.Message) error {
return f.Called(message).Error(0)
}
func (f *FakeSMSSender) SendVerificationSMS(_ *beeorm.Engine, _ errorlogger.ErrorLogger, otp *sms.OTP) error {
return f.Called(otp).Error(0)
}
func (f *FakeSMSSender) SendVerificationCallout(_ *beeorm.Engine, _ errorlogger.ErrorLogger, otp *sms.OTP) error {
return f.Called(otp).Error(0)
}
func (f *FakeSMSSender) VerifyCode(_ *beeorm.Engine, _ errorlogger.ErrorLogger, otp *sms.OTP) error {
return f.Called(otp).Error(0)
}