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

package mocks

import (
	context "context"

	publisher "github.com/charmingruby/homunc/apps/fraud/internal/fraud/delivery/event/publisher"
	mock "github.com/stretchr/testify/mock"
)

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

// DispatchCheckoutAvailabilityStatus provides a mock function with given fields: ctx, status, msg
func (_m *Publisher) DispatchCheckoutAvailabilityStatus(ctx context.Context, status string, msg publisher.DispatchCheckoutAvailabilityStatusMessage) error {
	ret := _m.Called(ctx, status, msg)

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

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

	return r0
}

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

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

	return mock
}
