forked from Bonial-International-GmbH/site24x7-go
/
location_profiles.go
50 lines (42 loc) · 1.28 KB
/
location_profiles.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
package fake
import (
"github.com/Bonial-International-GmbH/site24x7-go/api"
"github.com/Bonial-International-GmbH/site24x7-go/api/endpoints"
"github.com/stretchr/testify/mock"
)
var _ endpoints.LocationProfiles = &LocationProfiles{}
type LocationProfiles struct {
mock.Mock
}
func (e *LocationProfiles) Get(profileID string) (*api.LocationProfile, error) {
args := e.Called(profileID)
if obj, ok := args.Get(0).(*api.LocationProfile); ok {
return obj, args.Error(1)
}
return nil, args.Error(1)
}
func (e *LocationProfiles) Create(profile *api.LocationProfile) (*api.LocationProfile, error) {
args := e.Called(profile)
if obj, ok := args.Get(0).(*api.LocationProfile); ok {
return obj, args.Error(1)
}
return nil, args.Error(1)
}
func (e *LocationProfiles) Update(profile *api.LocationProfile) (*api.LocationProfile, error) {
args := e.Called(profile)
if obj, ok := args.Get(0).(*api.LocationProfile); ok {
return obj, args.Error(1)
}
return nil, args.Error(1)
}
func (e *LocationProfiles) Delete(profileID string) error {
args := e.Called(profileID)
return args.Error(0)
}
func (e *LocationProfiles) List() ([]*api.LocationProfile, error) {
args := e.Called()
if obj, ok := args.Get(0).([]*api.LocationProfile); ok {
return obj, args.Error(1)
}
return nil, args.Error(1)
}