1
|
|
|
// Code generated by MockGen. DO NOT EDIT. |
2
|
|
|
// Source: github.com/architectv/estate-task/pkg/service (interfaces: Booking) |
3
|
|
|
|
4
|
|
|
// Package mock_service is a generated GoMock package. |
5
|
|
|
package mock_service |
6
|
|
|
|
7
|
|
|
import ( |
8
|
|
|
reflect "reflect" |
9
|
|
|
|
10
|
|
|
model "github.com/architectv/estate-task/pkg/model" |
11
|
|
|
gomock "github.com/golang/mock/gomock" |
12
|
|
|
) |
13
|
|
|
|
14
|
|
|
// MockBooking is a mock of Booking interface. |
15
|
|
|
type MockBooking struct { |
16
|
|
|
ctrl *gomock.Controller |
17
|
|
|
recorder *MockBookingMockRecorder |
18
|
|
|
} |
19
|
|
|
|
20
|
|
|
// MockBookingMockRecorder is the mock recorder for MockBooking. |
21
|
|
|
type MockBookingMockRecorder struct { |
22
|
|
|
mock *MockBooking |
23
|
|
|
} |
24
|
|
|
|
25
|
|
|
// NewMockBooking creates a new mock instance. |
26
|
|
|
func NewMockBooking(ctrl *gomock.Controller) *MockBooking { |
27
|
|
|
mock := &MockBooking{ctrl: ctrl} |
28
|
|
|
mock.recorder = &MockBookingMockRecorder{mock} |
29
|
|
|
return mock |
30
|
|
|
} |
31
|
|
|
|
32
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use. |
33
|
|
|
func (m *MockBooking) EXPECT() *MockBookingMockRecorder { |
34
|
|
|
return m.recorder |
35
|
|
|
} |
36
|
|
|
|
37
|
|
|
// Create mocks base method. |
38
|
|
|
func (m *MockBooking) Create(arg0 *model.Booking) (int, error) { |
39
|
|
|
m.ctrl.T.Helper() |
40
|
|
|
ret := m.ctrl.Call(m, "Create", arg0) |
41
|
|
|
ret0, _ := ret[0].(int) |
42
|
|
|
ret1, _ := ret[1].(error) |
43
|
|
|
return ret0, ret1 |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
// Create indicates an expected call of Create. |
47
|
|
|
func (mr *MockBookingMockRecorder) Create(arg0 interface{}) *gomock.Call { |
48
|
|
|
mr.mock.ctrl.T.Helper() |
49
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockBooking)(nil).Create), arg0) |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
// Delete mocks base method. |
53
|
|
|
func (m *MockBooking) Delete(arg0 int) error { |
54
|
|
|
m.ctrl.T.Helper() |
55
|
|
|
ret := m.ctrl.Call(m, "Delete", arg0) |
56
|
|
|
ret0, _ := ret[0].(error) |
57
|
|
|
return ret0 |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
// Delete indicates an expected call of Delete. |
61
|
|
|
func (mr *MockBookingMockRecorder) Delete(arg0 interface{}) *gomock.Call { |
62
|
|
|
mr.mock.ctrl.T.Helper() |
63
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockBooking)(nil).Delete), arg0) |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
// GetByRoomId mocks base method. |
67
|
|
|
func (m *MockBooking) GetByRoomId(arg0 int) ([]*model.Booking, error) { |
68
|
|
|
m.ctrl.T.Helper() |
69
|
|
|
ret := m.ctrl.Call(m, "GetByRoomId", arg0) |
70
|
|
|
ret0, _ := ret[0].([]*model.Booking) |
71
|
|
|
ret1, _ := ret[1].(error) |
72
|
|
|
return ret0, ret1 |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
// GetByRoomId indicates an expected call of GetByRoomId. |
76
|
|
|
func (mr *MockBookingMockRecorder) GetByRoomId(arg0 interface{}) *gomock.Call { |
77
|
|
|
mr.mock.ctrl.T.Helper() |
78
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByRoomId", reflect.TypeOf((*MockBooking)(nil).GetByRoomId), arg0) |
79
|
|
|
} |
80
|
|
|
|