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

package mocks

import (
	context "context"

	entities "github.com/UpmeshLTD/urus-aio/infrastructure/db/entities"

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

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

// GetCountries provides a mock function with given fields: ctx
func (_m *Repository) GetCountries(ctx context.Context) ([]*entities.Country, error) {
	ret := _m.Called(ctx)

	var r0 []*entities.Country
	if rf, ok := ret.Get(0).(func(context.Context) []*entities.Country); ok {
		r0 = rf(ctx)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*entities.Country)
		}
	}

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

	return r0, r1
}

// GetCountryByCode provides a mock function with given fields: ctx, countryCode
func (_m *Repository) GetCountryByCode(ctx context.Context, countryCode string) (*entities.Country, error) {
	ret := _m.Called(ctx, countryCode)

	var r0 *entities.Country
	if rf, ok := ret.Get(0).(func(context.Context, string) *entities.Country); ok {
		r0 = rf(ctx, countryCode)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*entities.Country)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
		r1 = rf(ctx, countryCode)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetCountryByID provides a mock function with given fields: ctx, countryID
func (_m *Repository) GetCountryByID(ctx context.Context, countryID int64) (*entities.Country, error) {
	ret := _m.Called(ctx, countryID)

	var r0 *entities.Country
	if rf, ok := ret.Get(0).(func(context.Context, int64) *entities.Country); ok {
		r0 = rf(ctx, countryID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*entities.Country)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, int64) error); ok {
		r1 = rf(ctx, countryID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetLocations provides a mock function with given fields: ctx, params
func (_m *Repository) GetLocations(ctx context.Context, params *entities.GetLocationsFilterParams) ([]*entities.Location, error) {
	ret := _m.Called(ctx, params)

	var r0 []*entities.Location
	if rf, ok := ret.Get(0).(func(context.Context, *entities.GetLocationsFilterParams) []*entities.Location); ok {
		r0 = rf(ctx, params)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*entities.Location)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, *entities.GetLocationsFilterParams) error); ok {
		r1 = rf(ctx, params)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

type mockConstructorTestingTNewRepository interface {
	mock.TestingT
	Cleanup(func())
}

// NewRepository creates a new instance of Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewRepository(t mockConstructorTestingTNewRepository) *Repository {
	mock := &Repository{}
	mock.Mock.Test(t)

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

	return mock
}
