func (_m *ProviderService) GetRoles(id uint, resourceType string) ([]*domain.Role, error) {
	ret := _m.Called(id, resourceType)
	var r0 []*domain.Role
	if rf, ok := ret.Get(0).(func(uint, string) []*domain.Role); ok {
		r0 = rf(id, resourceType)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*domain.Role)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(uint, string) error); ok {
		r1 = rf(id, resourceType)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
GetRoles provides a mock function with given fields: id, resourceType
package mocks
import (
	domain "github.com/odpf/guardian/domain"
	mock "github.com/stretchr/testify/mock"
)
type ProviderService struct {
	mock.Mock
}
func (_m *ProviderService) Create(_a0 *domain.Provider) error {
	ret := _m.Called(_a0)
	var r0 error
	if rf, ok := ret.Get(0).(func(*domain.Provider) error); ok {
		r0 = rf(_a0)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *ProviderService) FetchResources() error {
	ret := _m.Called()
	var r0 error
	if rf, ok := ret.Get(0).(func() error); ok {
		r0 = rf()
	} else {
		r0 = ret.Error(0)
	}
	return r0
}
func (_m *ProviderService) Find() ([]*domain.Provider, error) {
	ret := _m.Called()
	var r0 []*domain.Provider
	if rf, ok := ret.Get(0).(func() []*domain.Provider); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*domain.Provider)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func() error); ok {
		r1 = rf()
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *ProviderService) GetByID(_a0 uint) (*domain.Provider, error) {
	ret := _m.Called(_a0)
	var r0 *domain.Provider
	if rf, ok := ret.Get(0).(func(uint) *domain.Provider); ok {
		r0 = rf(_a0)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*domain.Provider)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(uint) error); ok {
		r1 = rf(_a0)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *ProviderService) GetOne(pType string, urn string) (*domain.Provider, error) {
	ret := _m.Called(pType, urn)
	var r0 *domain.Provider
	if rf, ok := ret.Get(0).(func(string, string) *domain.Provider); ok {
		r0 = rf(pType, urn)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*domain.Provider)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string, string) error); ok {
		r1 = rf(pType, urn)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}