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

package mocks

import (
	context "context"

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

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

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

// Create provides a mock function with given fields: ctx, deliveryAddress
func (_m *Service) Create(ctx context.Context, deliveryAddress *entities.DeliveryAddress) error {
	ret := _m.Called(ctx, deliveryAddress)

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

	return r0
}

// GetList provides a mock function with given fields: ctx, params
func (_m *Service) GetList(ctx context.Context, params *entities.GetDeliveryAddressLogsParams) ([]*entities.DeliveryAddressLog, error) {
	ret := _m.Called(ctx, params)

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

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

	return r0, r1
}

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

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

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

	return mock
}
