// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify

package service

import (
	mock "github.com/stretchr/testify/mock"
)

// NewMockAzureKeyVault creates a new instance of MockAzureKeyVault. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewMockAzureKeyVault(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAzureKeyVault {
	mock := &MockAzureKeyVault{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}

// MockAzureKeyVault is an autogenerated mock type for the AzureKeyVault type
type MockAzureKeyVault struct {
	mock.Mock
}

type MockAzureKeyVault_Expecter struct {
	mock *mock.Mock
}

func (_m *MockAzureKeyVault) EXPECT() *MockAzureKeyVault_Expecter {
	return &MockAzureKeyVault_Expecter{mock: &_m.Mock}
}

// GetSecret provides a mock function for the type MockAzureKeyVault
func (_mock *MockAzureKeyVault) GetSecret(name string, version string) (interface{}, error) {
	ret := _mock.Called(name, version)

	if len(ret) == 0 {
		panic("no return value specified for GetSecret")
	}

	var r0 interface{}
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(string, string) (interface{}, error)); ok {
		return returnFunc(name, version)
	}
	if returnFunc, ok := ret.Get(0).(func(string, string) interface{}); ok {
		r0 = returnFunc(name, version)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(interface{})
		}
	}
	if returnFunc, ok := ret.Get(1).(func(string, string) error); ok {
		r1 = returnFunc(name, version)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

// MockAzureKeyVault_GetSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSecret'
type MockAzureKeyVault_GetSecret_Call struct {
	*mock.Call
}

// GetSecret is a helper method to define mock.On call
//   - name string
//   - version string
func (_e *MockAzureKeyVault_Expecter) GetSecret(name interface{}, version interface{}) *MockAzureKeyVault_GetSecret_Call {
	return &MockAzureKeyVault_GetSecret_Call{Call: _e.mock.On("GetSecret", name, version)}
}

func (_c *MockAzureKeyVault_GetSecret_Call) Run(run func(name string, version string)) *MockAzureKeyVault_GetSecret_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 string
		if args[0] != nil {
			arg0 = args[0].(string)
		}
		var arg1 string
		if args[1] != nil {
			arg1 = args[1].(string)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *MockAzureKeyVault_GetSecret_Call) Return(ifaceVal interface{}, err error) *MockAzureKeyVault_GetSecret_Call {
	_c.Call.Return(ifaceVal, err)
	return _c
}

func (_c *MockAzureKeyVault_GetSecret_Call) RunAndReturn(run func(name string, version string) (interface{}, error)) *MockAzureKeyVault_GetSecret_Call {
	_c.Call.Return(run)
	return _c
}
