// 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"
)

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

// GetByCourierTrackingID provides a mock function with given fields: ctx, courierTrackingID
func (_m *Service) GetByCourierTrackingID(ctx context.Context, courierTrackingID string) (*entities.FlashExpressPickup, error) {
	ret := _m.Called(ctx, courierTrackingID)

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

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

	return r0, r1
}

// GetByTicketPickupID provides a mock function with given fields: ctx, ticketPickupID
func (_m *Service) GetByTicketPickupID(ctx context.Context, ticketPickupID string) (*entities.FlashExpressPickup, error) {
	ret := _m.Called(ctx, ticketPickupID)

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

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
		r1 = rf(ctx, ticketPickupID)
	} 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
}
