// Automatically generated by mockimpl. DO NOT EDIT!

package mock

import "github.com/fleetdm/fleet/v4/server/fleet"

var _ fleet.ActivitiesStore = (*ActivitiesStore)(nil)

type NewActivityFunc func(user *fleet.User, activityType string, details *map[string]interface{}) error

type ListActivitiesFunc func(opt fleet.ListOptions) ([]*fleet.Activity, error)

type ActivitiesStore struct {
	NewActivityFunc        NewActivityFunc
	NewActivityFuncInvoked bool

	ListActivitiesFunc        ListActivitiesFunc
	ListActivitiesFuncInvoked bool
}

func (s *ActivitiesStore) NewActivity(user *fleet.User, activityType string, details *map[string]interface{}) error {
	s.NewActivityFuncInvoked = true
	return s.NewActivityFunc(user, activityType, details)
}

func (s *ActivitiesStore) ListActivities(opt fleet.ListOptions) ([]*fleet.Activity, error) {
	s.ListActivitiesFuncInvoked = true
	return s.ListActivitiesFunc(opt)
}
