// Code generated by mockery v2.45.1. DO NOT EDIT.

package adminkindboxvalidator

import (
	context "context"

	adminbenefactoreparam "git.gocasts.ir/ebhomengo/niki/param/admin/benefactor"

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

// MockBenefactorSvc is an autogenerated mock type for the BenefactorSvc type
type MockBenefactorSvc struct {
	mock.Mock
}

type MockBenefactorSvc_Expecter struct {
	mock *mock.Mock
}

func (_m *MockBenefactorSvc) EXPECT() *MockBenefactorSvc_Expecter {
	return &MockBenefactorSvc_Expecter{mock: &_m.Mock}
}

// BenefactorExistByID provides a mock function with given fields: ctx, request
func (_m *MockBenefactorSvc) BenefactorExistByID(ctx context.Context, request adminbenefactoreparam.BenefactorExistByIDRequest) (adminbenefactoreparam.BenefactorExistByIDResponse, error) {
	ret := _m.Called(ctx, request)

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

	var r0 adminbenefactoreparam.BenefactorExistByIDResponse
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, adminbenefactoreparam.BenefactorExistByIDRequest) (adminbenefactoreparam.BenefactorExistByIDResponse, error)); ok {
		return rf(ctx, request)
	}
	if rf, ok := ret.Get(0).(func(context.Context, adminbenefactoreparam.BenefactorExistByIDRequest) adminbenefactoreparam.BenefactorExistByIDResponse); ok {
		r0 = rf(ctx, request)
	} else {
		r0 = ret.Get(0).(adminbenefactoreparam.BenefactorExistByIDResponse)
	}

	if rf, ok := ret.Get(1).(func(context.Context, adminbenefactoreparam.BenefactorExistByIDRequest) error); ok {
		r1 = rf(ctx, request)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

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

// BenefactorExistByID is a helper method to define mock.On call
//   - ctx context.Context
//   - request adminbenefactoreparam.BenefactorExistByIDRequest
func (_e *MockBenefactorSvc_Expecter) BenefactorExistByID(ctx interface{}, request interface{}) *MockBenefactorSvc_BenefactorExistByID_Call {
	return &MockBenefactorSvc_BenefactorExistByID_Call{Call: _e.mock.On("BenefactorExistByID", ctx, request)}
}

func (_c *MockBenefactorSvc_BenefactorExistByID_Call) Run(run func(ctx context.Context, request adminbenefactoreparam.BenefactorExistByIDRequest)) *MockBenefactorSvc_BenefactorExistByID_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(adminbenefactoreparam.BenefactorExistByIDRequest))
	})
	return _c
}

func (_c *MockBenefactorSvc_BenefactorExistByID_Call) Return(_a0 adminbenefactoreparam.BenefactorExistByIDResponse, _a1 error) *MockBenefactorSvc_BenefactorExistByID_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *MockBenefactorSvc_BenefactorExistByID_Call) RunAndReturn(run func(context.Context, adminbenefactoreparam.BenefactorExistByIDRequest) (adminbenefactoreparam.BenefactorExistByIDResponse, error)) *MockBenefactorSvc_BenefactorExistByID_Call {
	_c.Call.Return(run)
	return _c
}

// NewMockBenefactorSvc creates a new instance of MockBenefactorSvc. 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 NewMockBenefactorSvc(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBenefactorSvc {
	mock := &MockBenefactorSvc{}
	mock.Mock.Test(t)

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

	return mock
}
