// 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
}

// CreateBusinessProfile provides a mock function with given fields: ctx, profile
func (_m *Repository) CreateBusinessProfile(ctx context.Context, profile *entities.BusinessProfile) (*entities.BusinessProfile, error) {
	ret := _m.Called(ctx, profile)

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

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

	return r0, r1
}

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

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string) error); ok {
		r0 = rf(ctx, id)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

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

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

	return r0, r1
}

// UpdateBusinessProfile provides a mock function with given fields: ctx, id, profile
func (_m *Repository) UpdateBusinessProfile(ctx context.Context, id string, profile *entities.BusinessProfile) error {
	ret := _m.Called(ctx, id, profile)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, string, *entities.BusinessProfile) error); ok {
		r0 = rf(ctx, id, profile)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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
}
