initial commit
This commit is contained in:
commit
93d8310491
46 changed files with 3379 additions and 0 deletions
13
testing/mock/emailService.go
Normal file
13
testing/mock/emailService.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package mock
|
||||
|
||||
import "github.com/dhax/go-base/email"
|
||||
|
||||
type EmailService struct {
|
||||
LoginTokenFn func(name, email string, c email.LoginTokenContent) error
|
||||
LoginTokenInvoked bool
|
||||
}
|
||||
|
||||
func (s *EmailService) LoginToken(n, e string, c email.LoginTokenContent) error {
|
||||
s.LoginTokenInvoked = true
|
||||
return s.LoginTokenFn(n, e, c)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue