// Code generated by mockery. DO NOT EDIT.

package mock_space

import (
	app "github.com/anyproto/any-sync/app"
	mock "github.com/stretchr/testify/mock"

	model "github.com/anyproto/anytype-heart/pkg/lib/pb/model"
)

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

type MockNotificationSender_Expecter struct {
	mock *mock.Mock
}

func (_m *MockNotificationSender) EXPECT() *MockNotificationSender_Expecter {
	return &MockNotificationSender_Expecter{mock: &_m.Mock}
}

// CreateAndSend provides a mock function with given fields: notification
func (_m *MockNotificationSender) CreateAndSend(notification *model.Notification) error {
	ret := _m.Called(notification)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(*model.Notification) error); ok {
		r0 = rf(notification)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// MockNotificationSender_CreateAndSend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAndSend'
type MockNotificationSender_CreateAndSend_Call struct {
	*mock.Call
}

// CreateAndSend is a helper method to define mock.On call
//   - notification *model.Notification
func (_e *MockNotificationSender_Expecter) CreateAndSend(notification interface{}) *MockNotificationSender_CreateAndSend_Call {
	return &MockNotificationSender_CreateAndSend_Call{Call: _e.mock.On("CreateAndSend", notification)}
}

func (_c *MockNotificationSender_CreateAndSend_Call) Run(run func(notification *model.Notification)) *MockNotificationSender_CreateAndSend_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(*model.Notification))
	})
	return _c
}

func (_c *MockNotificationSender_CreateAndSend_Call) Return(_a0 error) *MockNotificationSender_CreateAndSend_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockNotificationSender_CreateAndSend_Call) RunAndReturn(run func(*model.Notification) error) *MockNotificationSender_CreateAndSend_Call {
	_c.Call.Return(run)
	return _c
}

// Init provides a mock function with given fields: a
func (_m *MockNotificationSender) Init(a *app.App) error {
	ret := _m.Called(a)

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

	var r0 error
	if rf, ok := ret.Get(0).(func(*app.App) error); ok {
		r0 = rf(a)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// MockNotificationSender_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
type MockNotificationSender_Init_Call struct {
	*mock.Call
}

// Init is a helper method to define mock.On call
//   - a *app.App
func (_e *MockNotificationSender_Expecter) Init(a interface{}) *MockNotificationSender_Init_Call {
	return &MockNotificationSender_Init_Call{Call: _e.mock.On("Init", a)}
}

func (_c *MockNotificationSender_Init_Call) Run(run func(a *app.App)) *MockNotificationSender_Init_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(*app.App))
	})
	return _c
}

func (_c *MockNotificationSender_Init_Call) Return(err error) *MockNotificationSender_Init_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *MockNotificationSender_Init_Call) RunAndReturn(run func(*app.App) error) *MockNotificationSender_Init_Call {
	_c.Call.Return(run)
	return _c
}

// Name provides a mock function with given fields:
func (_m *MockNotificationSender) Name() string {
	ret := _m.Called()

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

	var r0 string
	if rf, ok := ret.Get(0).(func() string); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(string)
	}

	return r0
}

// MockNotificationSender_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
type MockNotificationSender_Name_Call struct {
	*mock.Call
}

// Name is a helper method to define mock.On call
func (_e *MockNotificationSender_Expecter) Name() *MockNotificationSender_Name_Call {
	return &MockNotificationSender_Name_Call{Call: _e.mock.On("Name")}
}

func (_c *MockNotificationSender_Name_Call) Run(run func()) *MockNotificationSender_Name_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *MockNotificationSender_Name_Call) Return(name string) *MockNotificationSender_Name_Call {
	_c.Call.Return(name)
	return _c
}

func (_c *MockNotificationSender_Name_Call) RunAndReturn(run func() string) *MockNotificationSender_Name_Call {
	_c.Call.Return(run)
	return _c
}

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

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

	return mock
}
