forked from krasnopv/das
-
Notifications
You must be signed in to change notification settings - Fork 0
/
account_mock.go
190 lines (158 loc) · 7.36 KB
/
account_mock.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
// Code generated by MockGen. DO NOT EDIT.
// Source: ./businesslogic/account.go
// Package mock_businesslogic is a generated GoMock package.
package mock_businesslogic
import (
businesslogic "github.com/ProximaB/das/businesslogic"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockIAccountTypeRepository is a mock of IAccountTypeRepository interface
type MockIAccountTypeRepository struct {
ctrl *gomock.Controller
recorder *MockIAccountTypeRepositoryMockRecorder
}
// MockIAccountTypeRepositoryMockRecorder is the mock recorder for MockIAccountTypeRepository
type MockIAccountTypeRepositoryMockRecorder struct {
mock *MockIAccountTypeRepository
}
// NewMockIAccountTypeRepository creates a new mock instance
func NewMockIAccountTypeRepository(ctrl *gomock.Controller) *MockIAccountTypeRepository {
mock := &MockIAccountTypeRepository{ctrl: ctrl}
mock.recorder = &MockIAccountTypeRepositoryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockIAccountTypeRepository) EXPECT() *MockIAccountTypeRepositoryMockRecorder {
return m.recorder
}
// GetAccountTypes mocks base method
func (m *MockIAccountTypeRepository) GetAccountTypes() ([]businesslogic.AccountType, error) {
ret := m.ctrl.Call(m, "GetAccountTypes")
ret0, _ := ret[0].([]businesslogic.AccountType)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetAccountTypes indicates an expected call of GetAccountTypes
func (mr *MockIAccountTypeRepositoryMockRecorder) GetAccountTypes() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountTypes", reflect.TypeOf((*MockIAccountTypeRepository)(nil).GetAccountTypes))
}
// MockIAccountStatusRepository is a mock of IAccountStatusRepository interface
type MockIAccountStatusRepository struct {
ctrl *gomock.Controller
recorder *MockIAccountStatusRepositoryMockRecorder
}
// MockIAccountStatusRepositoryMockRecorder is the mock recorder for MockIAccountStatusRepository
type MockIAccountStatusRepositoryMockRecorder struct {
mock *MockIAccountStatusRepository
}
// NewMockIAccountStatusRepository creates a new mock instance
func NewMockIAccountStatusRepository(ctrl *gomock.Controller) *MockIAccountStatusRepository {
mock := &MockIAccountStatusRepository{ctrl: ctrl}
mock.recorder = &MockIAccountStatusRepositoryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockIAccountStatusRepository) EXPECT() *MockIAccountStatusRepositoryMockRecorder {
return m.recorder
}
// GetAccountStatus mocks base method
func (m *MockIAccountStatusRepository) GetAccountStatus() ([]businesslogic.AccountStatus, error) {
ret := m.ctrl.Call(m, "GetAccountStatus")
ret0, _ := ret[0].([]businesslogic.AccountStatus)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetAccountStatus indicates an expected call of GetAccountStatus
func (mr *MockIAccountStatusRepositoryMockRecorder) GetAccountStatus() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountStatus", reflect.TypeOf((*MockIAccountStatusRepository)(nil).GetAccountStatus))
}
// MockIAccountRepository is a mock of IAccountRepository interface
type MockIAccountRepository struct {
ctrl *gomock.Controller
recorder *MockIAccountRepositoryMockRecorder
}
// MockIAccountRepositoryMockRecorder is the mock recorder for MockIAccountRepository
type MockIAccountRepositoryMockRecorder struct {
mock *MockIAccountRepository
}
// NewMockIAccountRepository creates a new mock instance
func NewMockIAccountRepository(ctrl *gomock.Controller) *MockIAccountRepository {
mock := &MockIAccountRepository{ctrl: ctrl}
mock.recorder = &MockIAccountRepositoryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockIAccountRepository) EXPECT() *MockIAccountRepositoryMockRecorder {
return m.recorder
}
// SearchAccount mocks base method
func (m *MockIAccountRepository) SearchAccount(criteria businesslogic.SearchAccountCriteria) ([]businesslogic.Account, error) {
ret := m.ctrl.Call(m, "SearchAccount", criteria)
ret0, _ := ret[0].([]businesslogic.Account)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SearchAccount indicates an expected call of SearchAccount
func (mr *MockIAccountRepositoryMockRecorder) SearchAccount(criteria interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchAccount", reflect.TypeOf((*MockIAccountRepository)(nil).SearchAccount), criteria)
}
// CreateAccount mocks base method
func (m *MockIAccountRepository) CreateAccount(account *businesslogic.Account) error {
ret := m.ctrl.Call(m, "CreateAccount", account)
ret0, _ := ret[0].(error)
return ret0
}
// CreateAccount indicates an expected call of CreateAccount
func (mr *MockIAccountRepositoryMockRecorder) CreateAccount(account interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccount", reflect.TypeOf((*MockIAccountRepository)(nil).CreateAccount), account)
}
// UpdateAccount mocks base method
func (m *MockIAccountRepository) UpdateAccount(account businesslogic.Account) error {
ret := m.ctrl.Call(m, "UpdateAccount", account)
ret0, _ := ret[0].(error)
return ret0
}
// UpdateAccount indicates an expected call of UpdateAccount
func (mr *MockIAccountRepositoryMockRecorder) UpdateAccount(account interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccount", reflect.TypeOf((*MockIAccountRepository)(nil).UpdateAccount), account)
}
// DeleteAccount mocks base method
func (m *MockIAccountRepository) DeleteAccount(account businesslogic.Account) error {
ret := m.ctrl.Call(m, "DeleteAccount", account)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteAccount indicates an expected call of DeleteAccount
func (mr *MockIAccountRepositoryMockRecorder) DeleteAccount(account interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccount", reflect.TypeOf((*MockIAccountRepository)(nil).DeleteAccount), account)
}
// MockICreateAccountStrategy is a mock of ICreateAccountStrategy interface
type MockICreateAccountStrategy struct {
ctrl *gomock.Controller
recorder *MockICreateAccountStrategyMockRecorder
}
// MockICreateAccountStrategyMockRecorder is the mock recorder for MockICreateAccountStrategy
type MockICreateAccountStrategyMockRecorder struct {
mock *MockICreateAccountStrategy
}
// NewMockICreateAccountStrategy creates a new mock instance
func NewMockICreateAccountStrategy(ctrl *gomock.Controller) *MockICreateAccountStrategy {
mock := &MockICreateAccountStrategy{ctrl: ctrl}
mock.recorder = &MockICreateAccountStrategyMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockICreateAccountStrategy) EXPECT() *MockICreateAccountStrategyMockRecorder {
return m.recorder
}
// CreateAccount mocks base method
func (m *MockICreateAccountStrategy) CreateAccount(account businesslogic.Account, password string) error {
ret := m.ctrl.Call(m, "CreateAccount", account, password)
ret0, _ := ret[0].(error)
return ret0
}
// CreateAccount indicates an expected call of CreateAccount
func (mr *MockICreateAccountStrategyMockRecorder) CreateAccount(account, password interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccount", reflect.TypeOf((*MockICreateAccountStrategy)(nil).CreateAccount), account, password)
}