/
mock_service.go
69 lines (54 loc) · 1.8 KB
/
mock_service.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mailer
import (
uuid "github.com/google/uuid"
mock "github.com/stretchr/testify/mock"
)
// MockService is an autogenerated mock type for the Service type
type MockService struct {
mock.Mock
}
// SendEmail provides a mock function with given fields: priority, email
func (_m *MockService) SendEmail(priority EmailPriority, email Email) error {
ret := _m.Called(priority, email)
var r0 error
if rf, ok := ret.Get(0).(func(EmailPriority, Email) error); ok {
r0 = rf(priority, email)
} else {
r0 = ret.Error(0)
}
return r0
}
// SendRegistrationConfirmationEmail provides a mock function with given fields: email, confirmationToken
func (_m *MockService) SendRegistrationConfirmationEmail(email string, confirmationToken uuid.UUID) error {
ret := _m.Called(email, confirmationToken)
var r0 error
if rf, ok := ret.Get(0).(func(string, uuid.UUID) error); ok {
r0 = rf(email, confirmationToken)
} else {
r0 = ret.Error(0)
}
return r0
}
// SendRegistrationConfirmedEmail provides a mock function with given fields: email, name, username
func (_m *MockService) SendRegistrationConfirmedEmail(email string, name string, username string) error {
ret := _m.Called(email, name, username)
var r0 error
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
r0 = rf(email, name, username)
} else {
r0 = ret.Error(0)
}
return r0
}
// SendUnexpectedRegistrationEmail provides a mock function with given fields: email, name, username
func (_m *MockService) SendUnexpectedRegistrationEmail(email string, name string, username string) error {
ret := _m.Called(email, name, username)
var r0 error
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
r0 = rf(email, name, username)
} else {
r0 = ret.Error(0)
}
return r0
}