Documentation
¶
Index ¶
- type DatabaseService
- func (_m *DatabaseService) Close() error
- func (_m *DatabaseService) DeleteInvite(ctx context.Context, criteria db.Invite) error
- func (_m *DatabaseService) EXPECT() *DatabaseService_Expecter
- func (_m *DatabaseService) GetInvitesForEntity(ctx context.Context, tenantID string, entityType string, entityID string) ([]db.Invite, error)
- func (_m *DatabaseService) GetOrCreateUser(ctx context.Context, tenantID string, input graph.UserInput) (*graph.User, error)
- func (_m *DatabaseService) GetRolesByTechnicalNames(ctx context.Context, entityType string, technicalNames []string) ([]*db.Role, error)
- func (_m *DatabaseService) GetRolesForEntity(ctx context.Context, entityType string, entityID string) ([]db.Role, error)
- func (_m *DatabaseService) GetTenantConfigurationForContext(ctx context.Context) (*db.TenantConfiguration, error)
- func (_m *DatabaseService) GetUserByEmail(ctx context.Context, tenantID string, email string) (*graph.User, error)
- func (_m *DatabaseService) GetUserByID(ctx context.Context, tenantID string, userId string) (*graph.User, error)
- func (_m *DatabaseService) GetUserHooks() db.UserHooks
- func (_m *DatabaseService) GetUsers(ctx context.Context, tenantID string, limit int, page int) (*graph.UserConnection, error)
- func (_m *DatabaseService) GetUsersByUserIDs(ctx context.Context, tenantID string, userIDs []string, limit int, page int, ...) ([]*graph.User, error)
- func (_m *DatabaseService) InviteUser(ctx context.Context, tenantID string, invite graph.Invite, notifyByEmail bool) error
- func (_m *DatabaseService) LoginUserWithToken(ctx context.Context, tokenInfo jwt.WebToken, userID string, tenantID string, ...) error
- func (_m *DatabaseService) RemoveRoleFromInvite(ctx context.Context, criteria db.Invite, roleToDelete string) error
- func (_m *DatabaseService) RemoveUser(ctx context.Context, tenantID string, userId string, email string) (bool, error)
- func (_m *DatabaseService) Save(user *graph.User) error
- func (_m *DatabaseService) SearchUsers(ctx context.Context, tenantID string, query string) ([]*graph.User, error)
- func (_m *DatabaseService) SetUserHooks(hooks db.UserHooks)
- type DatabaseService_Close_Call
- type DatabaseService_DeleteInvite_Call
- func (_c *DatabaseService_DeleteInvite_Call) Return(_a0 error) *DatabaseService_DeleteInvite_Call
- func (_c *DatabaseService_DeleteInvite_Call) Run(run func(ctx context.Context, criteria db.Invite)) *DatabaseService_DeleteInvite_Call
- func (_c *DatabaseService_DeleteInvite_Call) RunAndReturn(run func(context.Context, db.Invite) error) *DatabaseService_DeleteInvite_Call
- type DatabaseService_Expecter
- func (_e *DatabaseService_Expecter) Close() *DatabaseService_Close_Call
- func (_e *DatabaseService_Expecter) DeleteInvite(ctx interface{}, criteria interface{}) *DatabaseService_DeleteInvite_Call
- func (_e *DatabaseService_Expecter) GetInvitesForEntity(ctx interface{}, tenantID interface{}, entityType interface{}, ...) *DatabaseService_GetInvitesForEntity_Call
- func (_e *DatabaseService_Expecter) GetOrCreateUser(ctx interface{}, tenantID interface{}, input interface{}) *DatabaseService_GetOrCreateUser_Call
- func (_e *DatabaseService_Expecter) GetRolesByTechnicalNames(ctx interface{}, entityType interface{}, technicalNames interface{}) *DatabaseService_GetRolesByTechnicalNames_Call
- func (_e *DatabaseService_Expecter) GetRolesForEntity(ctx interface{}, entityType interface{}, entityID interface{}) *DatabaseService_GetRolesForEntity_Call
- func (_e *DatabaseService_Expecter) GetTenantConfigurationForContext(ctx interface{}) *DatabaseService_GetTenantConfigurationForContext_Call
- func (_e *DatabaseService_Expecter) GetUserByEmail(ctx interface{}, tenantID interface{}, email interface{}) *DatabaseService_GetUserByEmail_Call
- func (_e *DatabaseService_Expecter) GetUserByID(ctx interface{}, tenantID interface{}, userId interface{}) *DatabaseService_GetUserByID_Call
- func (_e *DatabaseService_Expecter) GetUserHooks() *DatabaseService_GetUserHooks_Call
- func (_e *DatabaseService_Expecter) GetUsers(ctx interface{}, tenantID interface{}, limit interface{}, page interface{}) *DatabaseService_GetUsers_Call
- func (_e *DatabaseService_Expecter) GetUsersByUserIDs(ctx interface{}, tenantID interface{}, userIDs interface{}, limit interface{}, ...) *DatabaseService_GetUsersByUserIDs_Call
- func (_e *DatabaseService_Expecter) InviteUser(ctx interface{}, tenantID interface{}, invite interface{}, ...) *DatabaseService_InviteUser_Call
- func (_e *DatabaseService_Expecter) LoginUserWithToken(ctx interface{}, tokenInfo interface{}, userID interface{}, ...) *DatabaseService_LoginUserWithToken_Call
- func (_e *DatabaseService_Expecter) RemoveRoleFromInvite(ctx interface{}, criteria interface{}, roleToDelete interface{}) *DatabaseService_RemoveRoleFromInvite_Call
- func (_e *DatabaseService_Expecter) RemoveUser(ctx interface{}, tenantID interface{}, userId interface{}, email interface{}) *DatabaseService_RemoveUser_Call
- func (_e *DatabaseService_Expecter) Save(user interface{}) *DatabaseService_Save_Call
- func (_e *DatabaseService_Expecter) SearchUsers(ctx interface{}, tenantID interface{}, query interface{}) *DatabaseService_SearchUsers_Call
- func (_e *DatabaseService_Expecter) SetUserHooks(hooks interface{}) *DatabaseService_SetUserHooks_Call
- type DatabaseService_GetInvitesForEntity_Call
- func (_c *DatabaseService_GetInvitesForEntity_Call) Return(_a0 []db.Invite, _a1 error) *DatabaseService_GetInvitesForEntity_Call
- func (_c *DatabaseService_GetInvitesForEntity_Call) Run(...) *DatabaseService_GetInvitesForEntity_Call
- func (_c *DatabaseService_GetInvitesForEntity_Call) RunAndReturn(run func(context.Context, string, string, string) ([]db.Invite, error)) *DatabaseService_GetInvitesForEntity_Call
- type DatabaseService_GetOrCreateUser_Call
- func (_c *DatabaseService_GetOrCreateUser_Call) Return(_a0 *graph.User, _a1 error) *DatabaseService_GetOrCreateUser_Call
- func (_c *DatabaseService_GetOrCreateUser_Call) Run(run func(ctx context.Context, tenantID string, input graph.UserInput)) *DatabaseService_GetOrCreateUser_Call
- func (_c *DatabaseService_GetOrCreateUser_Call) RunAndReturn(run func(context.Context, string, graph.UserInput) (*graph.User, error)) *DatabaseService_GetOrCreateUser_Call
- type DatabaseService_GetRolesByTechnicalNames_Call
- func (_c *DatabaseService_GetRolesByTechnicalNames_Call) Return(_a0 []*db.Role, _a1 error) *DatabaseService_GetRolesByTechnicalNames_Call
- func (_c *DatabaseService_GetRolesByTechnicalNames_Call) Run(run func(ctx context.Context, entityType string, technicalNames []string)) *DatabaseService_GetRolesByTechnicalNames_Call
- func (_c *DatabaseService_GetRolesByTechnicalNames_Call) RunAndReturn(run func(context.Context, string, []string) ([]*db.Role, error)) *DatabaseService_GetRolesByTechnicalNames_Call
- type DatabaseService_GetRolesForEntity_Call
- func (_c *DatabaseService_GetRolesForEntity_Call) Return(_a0 []db.Role, _a1 error) *DatabaseService_GetRolesForEntity_Call
- func (_c *DatabaseService_GetRolesForEntity_Call) Run(run func(ctx context.Context, entityType string, entityID string)) *DatabaseService_GetRolesForEntity_Call
- func (_c *DatabaseService_GetRolesForEntity_Call) RunAndReturn(run func(context.Context, string, string) ([]db.Role, error)) *DatabaseService_GetRolesForEntity_Call
- type DatabaseService_GetTenantConfigurationForContext_Call
- func (_c *DatabaseService_GetTenantConfigurationForContext_Call) Return(_a0 *db.TenantConfiguration, _a1 error) *DatabaseService_GetTenantConfigurationForContext_Call
- func (_c *DatabaseService_GetTenantConfigurationForContext_Call) Run(run func(ctx context.Context)) *DatabaseService_GetTenantConfigurationForContext_Call
- func (_c *DatabaseService_GetTenantConfigurationForContext_Call) RunAndReturn(run func(context.Context) (*db.TenantConfiguration, error)) *DatabaseService_GetTenantConfigurationForContext_Call
- type DatabaseService_GetUserByEmail_Call
- func (_c *DatabaseService_GetUserByEmail_Call) Return(_a0 *graph.User, _a1 error) *DatabaseService_GetUserByEmail_Call
- func (_c *DatabaseService_GetUserByEmail_Call) Run(run func(ctx context.Context, tenantID string, email string)) *DatabaseService_GetUserByEmail_Call
- func (_c *DatabaseService_GetUserByEmail_Call) RunAndReturn(run func(context.Context, string, string) (*graph.User, error)) *DatabaseService_GetUserByEmail_Call
- type DatabaseService_GetUserByID_Call
- func (_c *DatabaseService_GetUserByID_Call) Return(_a0 *graph.User, _a1 error) *DatabaseService_GetUserByID_Call
- func (_c *DatabaseService_GetUserByID_Call) Run(run func(ctx context.Context, tenantID string, userId string)) *DatabaseService_GetUserByID_Call
- func (_c *DatabaseService_GetUserByID_Call) RunAndReturn(run func(context.Context, string, string) (*graph.User, error)) *DatabaseService_GetUserByID_Call
- type DatabaseService_GetUserHooks_Call
- func (_c *DatabaseService_GetUserHooks_Call) Return(_a0 db.UserHooks) *DatabaseService_GetUserHooks_Call
- func (_c *DatabaseService_GetUserHooks_Call) Run(run func()) *DatabaseService_GetUserHooks_Call
- func (_c *DatabaseService_GetUserHooks_Call) RunAndReturn(run func() db.UserHooks) *DatabaseService_GetUserHooks_Call
- type DatabaseService_GetUsersByUserIDs_Call
- func (_c *DatabaseService_GetUsersByUserIDs_Call) Return(_a0 []*graph.User, _a1 error) *DatabaseService_GetUsersByUserIDs_Call
- func (_c *DatabaseService_GetUsersByUserIDs_Call) Run(...) *DatabaseService_GetUsersByUserIDs_Call
- func (_c *DatabaseService_GetUsersByUserIDs_Call) RunAndReturn(...) *DatabaseService_GetUsersByUserIDs_Call
- type DatabaseService_GetUsers_Call
- func (_c *DatabaseService_GetUsers_Call) Return(_a0 *graph.UserConnection, _a1 error) *DatabaseService_GetUsers_Call
- func (_c *DatabaseService_GetUsers_Call) Run(run func(ctx context.Context, tenantID string, limit int, page int)) *DatabaseService_GetUsers_Call
- func (_c *DatabaseService_GetUsers_Call) RunAndReturn(run func(context.Context, string, int, int) (*graph.UserConnection, error)) *DatabaseService_GetUsers_Call
- type DatabaseService_InviteUser_Call
- func (_c *DatabaseService_InviteUser_Call) Return(_a0 error) *DatabaseService_InviteUser_Call
- func (_c *DatabaseService_InviteUser_Call) Run(...) *DatabaseService_InviteUser_Call
- func (_c *DatabaseService_InviteUser_Call) RunAndReturn(run func(context.Context, string, graph.Invite, bool) error) *DatabaseService_InviteUser_Call
- type DatabaseService_LoginUserWithToken_Call
- func (_c *DatabaseService_LoginUserWithToken_Call) Return(_a0 error) *DatabaseService_LoginUserWithToken_Call
- func (_c *DatabaseService_LoginUserWithToken_Call) Run(...) *DatabaseService_LoginUserWithToken_Call
- func (_c *DatabaseService_LoginUserWithToken_Call) RunAndReturn(...) *DatabaseService_LoginUserWithToken_Call
- type DatabaseService_RemoveRoleFromInvite_Call
- func (_c *DatabaseService_RemoveRoleFromInvite_Call) Return(_a0 error) *DatabaseService_RemoveRoleFromInvite_Call
- func (_c *DatabaseService_RemoveRoleFromInvite_Call) Run(run func(ctx context.Context, criteria db.Invite, roleToDelete string)) *DatabaseService_RemoveRoleFromInvite_Call
- func (_c *DatabaseService_RemoveRoleFromInvite_Call) RunAndReturn(run func(context.Context, db.Invite, string) error) *DatabaseService_RemoveRoleFromInvite_Call
- type DatabaseService_RemoveUser_Call
- func (_c *DatabaseService_RemoveUser_Call) Return(_a0 bool, _a1 error) *DatabaseService_RemoveUser_Call
- func (_c *DatabaseService_RemoveUser_Call) Run(run func(ctx context.Context, tenantID string, userId string, email string)) *DatabaseService_RemoveUser_Call
- func (_c *DatabaseService_RemoveUser_Call) RunAndReturn(run func(context.Context, string, string, string) (bool, error)) *DatabaseService_RemoveUser_Call
- type DatabaseService_Save_Call
- type DatabaseService_SearchUsers_Call
- func (_c *DatabaseService_SearchUsers_Call) Return(_a0 []*graph.User, _a1 error) *DatabaseService_SearchUsers_Call
- func (_c *DatabaseService_SearchUsers_Call) Run(run func(ctx context.Context, tenantID string, query string)) *DatabaseService_SearchUsers_Call
- func (_c *DatabaseService_SearchUsers_Call) RunAndReturn(run func(context.Context, string, string) ([]*graph.User, error)) *DatabaseService_SearchUsers_Call
- type DatabaseService_SetUserHooks_Call
- func (_c *DatabaseService_SetUserHooks_Call) Return() *DatabaseService_SetUserHooks_Call
- func (_c *DatabaseService_SetUserHooks_Call) Run(run func(hooks db.UserHooks)) *DatabaseService_SetUserHooks_Call
- func (_c *DatabaseService_SetUserHooks_Call) RunAndReturn(run func(db.UserHooks)) *DatabaseService_SetUserHooks_Call
- type UserHooks
- func (_m *UserHooks) EXPECT() *UserHooks_Expecter
- func (_m *UserHooks) UserCreated(ctx context.Context, user *graph.User, tenantID string)
- func (_m *UserHooks) UserInvited(ctx context.Context, user *graph.User, tenantID string, scope string, ...)
- func (_m *UserHooks) UserLogin(ctx context.Context, user *graph.User, tenantID string)
- func (_m *UserHooks) UserRemoved(ctx context.Context, user *graph.User, tenantID string)
- type UserHooks_Expecter
- func (_e *UserHooks_Expecter) UserCreated(ctx interface{}, user interface{}, tenantID interface{}) *UserHooks_UserCreated_Call
- func (_e *UserHooks_Expecter) UserInvited(ctx interface{}, user interface{}, tenantID interface{}, scope interface{}, ...) *UserHooks_UserInvited_Call
- func (_e *UserHooks_Expecter) UserLogin(ctx interface{}, user interface{}, tenantID interface{}) *UserHooks_UserLogin_Call
- func (_e *UserHooks_Expecter) UserRemoved(ctx interface{}, user interface{}, tenantID interface{}) *UserHooks_UserRemoved_Call
- type UserHooks_UserCreated_Call
- func (_c *UserHooks_UserCreated_Call) Return() *UserHooks_UserCreated_Call
- func (_c *UserHooks_UserCreated_Call) Run(run func(ctx context.Context, user *graph.User, tenantID string)) *UserHooks_UserCreated_Call
- func (_c *UserHooks_UserCreated_Call) RunAndReturn(run func(context.Context, *graph.User, string)) *UserHooks_UserCreated_Call
- type UserHooks_UserInvited_Call
- type UserHooks_UserLogin_Call
- func (_c *UserHooks_UserLogin_Call) Return() *UserHooks_UserLogin_Call
- func (_c *UserHooks_UserLogin_Call) Run(run func(ctx context.Context, user *graph.User, tenantID string)) *UserHooks_UserLogin_Call
- func (_c *UserHooks_UserLogin_Call) RunAndReturn(run func(context.Context, *graph.User, string)) *UserHooks_UserLogin_Call
- type UserHooks_UserRemoved_Call
- func (_c *UserHooks_UserRemoved_Call) Return() *UserHooks_UserRemoved_Call
- func (_c *UserHooks_UserRemoved_Call) Run(run func(ctx context.Context, user *graph.User, tenantID string)) *UserHooks_UserRemoved_Call
- func (_c *UserHooks_UserRemoved_Call) RunAndReturn(run func(context.Context, *graph.User, string)) *UserHooks_UserRemoved_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseService ¶
DatabaseService is an autogenerated mock type for the Service type
func NewDatabaseService ¶
func NewDatabaseService(t interface {
mock.TestingT
Cleanup(func())
}) *DatabaseService
NewDatabaseService creates a new instance of DatabaseService. 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 (*DatabaseService) Close ¶
func (_m *DatabaseService) Close() error
Close provides a mock function with no fields
func (*DatabaseService) DeleteInvite ¶
DeleteInvite provides a mock function with given fields: ctx, criteria
func (*DatabaseService) EXPECT ¶
func (_m *DatabaseService) EXPECT() *DatabaseService_Expecter
func (*DatabaseService) GetInvitesForEntity ¶
func (_m *DatabaseService) GetInvitesForEntity(ctx context.Context, tenantID string, entityType string, entityID string) ([]db.Invite, error)
GetInvitesForEntity provides a mock function with given fields: ctx, tenantID, entityType, entityID
func (*DatabaseService) GetOrCreateUser ¶
func (_m *DatabaseService) GetOrCreateUser(ctx context.Context, tenantID string, input graph.UserInput) (*graph.User, error)
GetOrCreateUser provides a mock function with given fields: ctx, tenantID, input
func (*DatabaseService) GetRolesByTechnicalNames ¶
func (_m *DatabaseService) GetRolesByTechnicalNames(ctx context.Context, entityType string, technicalNames []string) ([]*db.Role, error)
GetRolesByTechnicalNames provides a mock function with given fields: ctx, entityType, technicalNames
func (*DatabaseService) GetRolesForEntity ¶
func (_m *DatabaseService) GetRolesForEntity(ctx context.Context, entityType string, entityID string) ([]db.Role, error)
GetRolesForEntity provides a mock function with given fields: ctx, entityType, entityID
func (*DatabaseService) GetTenantConfigurationForContext ¶
func (_m *DatabaseService) GetTenantConfigurationForContext(ctx context.Context) (*db.TenantConfiguration, error)
GetTenantConfigurationForContext provides a mock function with given fields: ctx
func (*DatabaseService) GetUserByEmail ¶
func (_m *DatabaseService) GetUserByEmail(ctx context.Context, tenantID string, email string) (*graph.User, error)
GetUserByEmail provides a mock function with given fields: ctx, tenantID, email
func (*DatabaseService) GetUserByID ¶
func (_m *DatabaseService) GetUserByID(ctx context.Context, tenantID string, userId string) (*graph.User, error)
GetUserByID provides a mock function with given fields: ctx, tenantID, userId
func (*DatabaseService) GetUserHooks ¶
func (_m *DatabaseService) GetUserHooks() db.UserHooks
GetUserHooks provides a mock function with no fields
func (*DatabaseService) GetUsers ¶
func (_m *DatabaseService) GetUsers(ctx context.Context, tenantID string, limit int, page int) (*graph.UserConnection, error)
GetUsers provides a mock function with given fields: ctx, tenantID, limit, page
func (*DatabaseService) GetUsersByUserIDs ¶
func (_m *DatabaseService) GetUsersByUserIDs(ctx context.Context, tenantID string, userIDs []string, limit int, page int, searchTerm *string, sortBy *graph.SortByInput) ([]*graph.User, error)
GetUsersByUserIDs provides a mock function with given fields: ctx, tenantID, userIDs, limit, page, searchTerm, sortBy
func (*DatabaseService) InviteUser ¶
func (_m *DatabaseService) InviteUser(ctx context.Context, tenantID string, invite graph.Invite, notifyByEmail bool) error
InviteUser provides a mock function with given fields: ctx, tenantID, invite, notifyByEmail
func (*DatabaseService) LoginUserWithToken ¶ added in v0.4.2
func (_m *DatabaseService) LoginUserWithToken(ctx context.Context, tokenInfo jwt.WebToken, userID string, tenantID string, user *graph.User, email string) error
LoginUserWithToken provides a mock function with given fields: ctx, tokenInfo, userID, tenantID, user, email
func (*DatabaseService) RemoveRoleFromInvite ¶
func (_m *DatabaseService) RemoveRoleFromInvite(ctx context.Context, criteria db.Invite, roleToDelete string) error
RemoveRoleFromInvite provides a mock function with given fields: ctx, criteria, roleToDelete
func (*DatabaseService) RemoveUser ¶
func (_m *DatabaseService) RemoveUser(ctx context.Context, tenantID string, userId string, email string) (bool, error)
RemoveUser provides a mock function with given fields: ctx, tenantID, userId, email
func (*DatabaseService) Save ¶
func (_m *DatabaseService) Save(user *graph.User) error
Save provides a mock function with given fields: user
func (*DatabaseService) SearchUsers ¶
func (_m *DatabaseService) SearchUsers(ctx context.Context, tenantID string, query string) ([]*graph.User, error)
SearchUsers provides a mock function with given fields: ctx, tenantID, query
func (*DatabaseService) SetUserHooks ¶
func (_m *DatabaseService) SetUserHooks(hooks db.UserHooks)
SetUserHooks provides a mock function with given fields: hooks
type DatabaseService_Close_Call ¶
DatabaseService_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*DatabaseService_Close_Call) Return ¶
func (_c *DatabaseService_Close_Call) Return(_a0 error) *DatabaseService_Close_Call
func (*DatabaseService_Close_Call) Run ¶
func (_c *DatabaseService_Close_Call) Run(run func()) *DatabaseService_Close_Call
func (*DatabaseService_Close_Call) RunAndReturn ¶
func (_c *DatabaseService_Close_Call) RunAndReturn(run func() error) *DatabaseService_Close_Call
type DatabaseService_DeleteInvite_Call ¶
DatabaseService_DeleteInvite_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteInvite'
func (*DatabaseService_DeleteInvite_Call) Return ¶
func (_c *DatabaseService_DeleteInvite_Call) Return(_a0 error) *DatabaseService_DeleteInvite_Call
func (*DatabaseService_DeleteInvite_Call) Run ¶
func (_c *DatabaseService_DeleteInvite_Call) Run(run func(ctx context.Context, criteria db.Invite)) *DatabaseService_DeleteInvite_Call
func (*DatabaseService_DeleteInvite_Call) RunAndReturn ¶
func (_c *DatabaseService_DeleteInvite_Call) RunAndReturn(run func(context.Context, db.Invite) error) *DatabaseService_DeleteInvite_Call
type DatabaseService_Expecter ¶
type DatabaseService_Expecter struct {
// contains filtered or unexported fields
}
func (*DatabaseService_Expecter) Close ¶
func (_e *DatabaseService_Expecter) Close() *DatabaseService_Close_Call
Close is a helper method to define mock.On call
func (*DatabaseService_Expecter) DeleteInvite ¶
func (_e *DatabaseService_Expecter) DeleteInvite(ctx interface{}, criteria interface{}) *DatabaseService_DeleteInvite_Call
DeleteInvite is a helper method to define mock.On call
- ctx context.Context
- criteria db.Invite
func (*DatabaseService_Expecter) GetInvitesForEntity ¶
func (_e *DatabaseService_Expecter) GetInvitesForEntity(ctx interface{}, tenantID interface{}, entityType interface{}, entityID interface{}) *DatabaseService_GetInvitesForEntity_Call
GetInvitesForEntity is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- entityType string
- entityID string
func (*DatabaseService_Expecter) GetOrCreateUser ¶
func (_e *DatabaseService_Expecter) GetOrCreateUser(ctx interface{}, tenantID interface{}, input interface{}) *DatabaseService_GetOrCreateUser_Call
GetOrCreateUser is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- input graph.UserInput
func (*DatabaseService_Expecter) GetRolesByTechnicalNames ¶
func (_e *DatabaseService_Expecter) GetRolesByTechnicalNames(ctx interface{}, entityType interface{}, technicalNames interface{}) *DatabaseService_GetRolesByTechnicalNames_Call
GetRolesByTechnicalNames is a helper method to define mock.On call
- ctx context.Context
- entityType string
- technicalNames []string
func (*DatabaseService_Expecter) GetRolesForEntity ¶
func (_e *DatabaseService_Expecter) GetRolesForEntity(ctx interface{}, entityType interface{}, entityID interface{}) *DatabaseService_GetRolesForEntity_Call
GetRolesForEntity is a helper method to define mock.On call
- ctx context.Context
- entityType string
- entityID string
func (*DatabaseService_Expecter) GetTenantConfigurationForContext ¶
func (_e *DatabaseService_Expecter) GetTenantConfigurationForContext(ctx interface{}) *DatabaseService_GetTenantConfigurationForContext_Call
GetTenantConfigurationForContext is a helper method to define mock.On call
- ctx context.Context
func (*DatabaseService_Expecter) GetUserByEmail ¶
func (_e *DatabaseService_Expecter) GetUserByEmail(ctx interface{}, tenantID interface{}, email interface{}) *DatabaseService_GetUserByEmail_Call
GetUserByEmail is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- email string
func (*DatabaseService_Expecter) GetUserByID ¶
func (_e *DatabaseService_Expecter) GetUserByID(ctx interface{}, tenantID interface{}, userId interface{}) *DatabaseService_GetUserByID_Call
GetUserByID is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- userId string
func (*DatabaseService_Expecter) GetUserHooks ¶
func (_e *DatabaseService_Expecter) GetUserHooks() *DatabaseService_GetUserHooks_Call
GetUserHooks is a helper method to define mock.On call
func (*DatabaseService_Expecter) GetUsers ¶
func (_e *DatabaseService_Expecter) GetUsers(ctx interface{}, tenantID interface{}, limit interface{}, page interface{}) *DatabaseService_GetUsers_Call
GetUsers is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- limit int
- page int
func (*DatabaseService_Expecter) GetUsersByUserIDs ¶
func (_e *DatabaseService_Expecter) GetUsersByUserIDs(ctx interface{}, tenantID interface{}, userIDs interface{}, limit interface{}, page interface{}, searchTerm interface{}, sortBy interface{}) *DatabaseService_GetUsersByUserIDs_Call
GetUsersByUserIDs is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- userIDs []string
- limit int
- page int
- searchTerm *string
- sortBy *graph.SortByInput
func (*DatabaseService_Expecter) InviteUser ¶
func (_e *DatabaseService_Expecter) InviteUser(ctx interface{}, tenantID interface{}, invite interface{}, notifyByEmail interface{}) *DatabaseService_InviteUser_Call
InviteUser is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- invite graph.Invite
- notifyByEmail bool
func (*DatabaseService_Expecter) LoginUserWithToken ¶ added in v0.4.2
func (_e *DatabaseService_Expecter) LoginUserWithToken(ctx interface{}, tokenInfo interface{}, userID interface{}, tenantID interface{}, user interface{}, email interface{}) *DatabaseService_LoginUserWithToken_Call
LoginUserWithToken is a helper method to define mock.On call
- ctx context.Context
- tokenInfo jwt.WebToken
- userID string
- tenantID string
- user *graph.User
- email string
func (*DatabaseService_Expecter) RemoveRoleFromInvite ¶
func (_e *DatabaseService_Expecter) RemoveRoleFromInvite(ctx interface{}, criteria interface{}, roleToDelete interface{}) *DatabaseService_RemoveRoleFromInvite_Call
RemoveRoleFromInvite is a helper method to define mock.On call
- ctx context.Context
- criteria db.Invite
- roleToDelete string
func (*DatabaseService_Expecter) RemoveUser ¶
func (_e *DatabaseService_Expecter) RemoveUser(ctx interface{}, tenantID interface{}, userId interface{}, email interface{}) *DatabaseService_RemoveUser_Call
RemoveUser is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- userId string
- email string
func (*DatabaseService_Expecter) Save ¶
func (_e *DatabaseService_Expecter) Save(user interface{}) *DatabaseService_Save_Call
Save is a helper method to define mock.On call
- user *graph.User
func (*DatabaseService_Expecter) SearchUsers ¶
func (_e *DatabaseService_Expecter) SearchUsers(ctx interface{}, tenantID interface{}, query interface{}) *DatabaseService_SearchUsers_Call
SearchUsers is a helper method to define mock.On call
- ctx context.Context
- tenantID string
- query string
func (*DatabaseService_Expecter) SetUserHooks ¶
func (_e *DatabaseService_Expecter) SetUserHooks(hooks interface{}) *DatabaseService_SetUserHooks_Call
SetUserHooks is a helper method to define mock.On call
- hooks db.UserHooks
type DatabaseService_GetInvitesForEntity_Call ¶
DatabaseService_GetInvitesForEntity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInvitesForEntity'
func (*DatabaseService_GetInvitesForEntity_Call) Return ¶
func (_c *DatabaseService_GetInvitesForEntity_Call) Return(_a0 []db.Invite, _a1 error) *DatabaseService_GetInvitesForEntity_Call
func (*DatabaseService_GetInvitesForEntity_Call) Run ¶
func (_c *DatabaseService_GetInvitesForEntity_Call) Run(run func(ctx context.Context, tenantID string, entityType string, entityID string)) *DatabaseService_GetInvitesForEntity_Call
func (*DatabaseService_GetInvitesForEntity_Call) RunAndReturn ¶
func (_c *DatabaseService_GetInvitesForEntity_Call) RunAndReturn(run func(context.Context, string, string, string) ([]db.Invite, error)) *DatabaseService_GetInvitesForEntity_Call
type DatabaseService_GetOrCreateUser_Call ¶
DatabaseService_GetOrCreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrCreateUser'
func (*DatabaseService_GetOrCreateUser_Call) Return ¶
func (_c *DatabaseService_GetOrCreateUser_Call) Return(_a0 *graph.User, _a1 error) *DatabaseService_GetOrCreateUser_Call
func (*DatabaseService_GetOrCreateUser_Call) Run ¶
func (_c *DatabaseService_GetOrCreateUser_Call) Run(run func(ctx context.Context, tenantID string, input graph.UserInput)) *DatabaseService_GetOrCreateUser_Call
func (*DatabaseService_GetOrCreateUser_Call) RunAndReturn ¶
func (_c *DatabaseService_GetOrCreateUser_Call) RunAndReturn(run func(context.Context, string, graph.UserInput) (*graph.User, error)) *DatabaseService_GetOrCreateUser_Call
type DatabaseService_GetRolesByTechnicalNames_Call ¶
DatabaseService_GetRolesByTechnicalNames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRolesByTechnicalNames'
func (*DatabaseService_GetRolesByTechnicalNames_Call) Return ¶
func (_c *DatabaseService_GetRolesByTechnicalNames_Call) Return(_a0 []*db.Role, _a1 error) *DatabaseService_GetRolesByTechnicalNames_Call
func (*DatabaseService_GetRolesByTechnicalNames_Call) Run ¶
func (_c *DatabaseService_GetRolesByTechnicalNames_Call) Run(run func(ctx context.Context, entityType string, technicalNames []string)) *DatabaseService_GetRolesByTechnicalNames_Call
func (*DatabaseService_GetRolesByTechnicalNames_Call) RunAndReturn ¶
func (_c *DatabaseService_GetRolesByTechnicalNames_Call) RunAndReturn(run func(context.Context, string, []string) ([]*db.Role, error)) *DatabaseService_GetRolesByTechnicalNames_Call
type DatabaseService_GetRolesForEntity_Call ¶
DatabaseService_GetRolesForEntity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRolesForEntity'
func (*DatabaseService_GetRolesForEntity_Call) Return ¶
func (_c *DatabaseService_GetRolesForEntity_Call) Return(_a0 []db.Role, _a1 error) *DatabaseService_GetRolesForEntity_Call
func (*DatabaseService_GetRolesForEntity_Call) Run ¶
func (_c *DatabaseService_GetRolesForEntity_Call) Run(run func(ctx context.Context, entityType string, entityID string)) *DatabaseService_GetRolesForEntity_Call
func (*DatabaseService_GetRolesForEntity_Call) RunAndReturn ¶
func (_c *DatabaseService_GetRolesForEntity_Call) RunAndReturn(run func(context.Context, string, string) ([]db.Role, error)) *DatabaseService_GetRolesForEntity_Call
type DatabaseService_GetTenantConfigurationForContext_Call ¶
DatabaseService_GetTenantConfigurationForContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTenantConfigurationForContext'
func (*DatabaseService_GetTenantConfigurationForContext_Call) Return ¶
func (_c *DatabaseService_GetTenantConfigurationForContext_Call) Return(_a0 *db.TenantConfiguration, _a1 error) *DatabaseService_GetTenantConfigurationForContext_Call
func (*DatabaseService_GetTenantConfigurationForContext_Call) Run ¶
func (_c *DatabaseService_GetTenantConfigurationForContext_Call) Run(run func(ctx context.Context)) *DatabaseService_GetTenantConfigurationForContext_Call
func (*DatabaseService_GetTenantConfigurationForContext_Call) RunAndReturn ¶
func (_c *DatabaseService_GetTenantConfigurationForContext_Call) RunAndReturn(run func(context.Context) (*db.TenantConfiguration, error)) *DatabaseService_GetTenantConfigurationForContext_Call
type DatabaseService_GetUserByEmail_Call ¶
DatabaseService_GetUserByEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByEmail'
func (*DatabaseService_GetUserByEmail_Call) Return ¶
func (_c *DatabaseService_GetUserByEmail_Call) Return(_a0 *graph.User, _a1 error) *DatabaseService_GetUserByEmail_Call
func (*DatabaseService_GetUserByEmail_Call) Run ¶
func (_c *DatabaseService_GetUserByEmail_Call) Run(run func(ctx context.Context, tenantID string, email string)) *DatabaseService_GetUserByEmail_Call
func (*DatabaseService_GetUserByEmail_Call) RunAndReturn ¶
func (_c *DatabaseService_GetUserByEmail_Call) RunAndReturn(run func(context.Context, string, string) (*graph.User, error)) *DatabaseService_GetUserByEmail_Call
type DatabaseService_GetUserByID_Call ¶
DatabaseService_GetUserByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByID'
func (*DatabaseService_GetUserByID_Call) Return ¶
func (_c *DatabaseService_GetUserByID_Call) Return(_a0 *graph.User, _a1 error) *DatabaseService_GetUserByID_Call
func (*DatabaseService_GetUserByID_Call) Run ¶
func (_c *DatabaseService_GetUserByID_Call) Run(run func(ctx context.Context, tenantID string, userId string)) *DatabaseService_GetUserByID_Call
func (*DatabaseService_GetUserByID_Call) RunAndReturn ¶
func (_c *DatabaseService_GetUserByID_Call) RunAndReturn(run func(context.Context, string, string) (*graph.User, error)) *DatabaseService_GetUserByID_Call
type DatabaseService_GetUserHooks_Call ¶
DatabaseService_GetUserHooks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserHooks'
func (*DatabaseService_GetUserHooks_Call) Return ¶
func (_c *DatabaseService_GetUserHooks_Call) Return(_a0 db.UserHooks) *DatabaseService_GetUserHooks_Call
func (*DatabaseService_GetUserHooks_Call) Run ¶
func (_c *DatabaseService_GetUserHooks_Call) Run(run func()) *DatabaseService_GetUserHooks_Call
func (*DatabaseService_GetUserHooks_Call) RunAndReturn ¶
func (_c *DatabaseService_GetUserHooks_Call) RunAndReturn(run func() db.UserHooks) *DatabaseService_GetUserHooks_Call
type DatabaseService_GetUsersByUserIDs_Call ¶
DatabaseService_GetUsersByUserIDs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUsersByUserIDs'
func (*DatabaseService_GetUsersByUserIDs_Call) Return ¶
func (_c *DatabaseService_GetUsersByUserIDs_Call) Return(_a0 []*graph.User, _a1 error) *DatabaseService_GetUsersByUserIDs_Call
func (*DatabaseService_GetUsersByUserIDs_Call) Run ¶
func (_c *DatabaseService_GetUsersByUserIDs_Call) Run(run func(ctx context.Context, tenantID string, userIDs []string, limit int, page int, searchTerm *string, sortBy *graph.SortByInput)) *DatabaseService_GetUsersByUserIDs_Call
func (*DatabaseService_GetUsersByUserIDs_Call) RunAndReturn ¶
func (_c *DatabaseService_GetUsersByUserIDs_Call) RunAndReturn(run func(context.Context, string, []string, int, int, *string, *graph.SortByInput) ([]*graph.User, error)) *DatabaseService_GetUsersByUserIDs_Call
type DatabaseService_GetUsers_Call ¶
DatabaseService_GetUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUsers'
func (*DatabaseService_GetUsers_Call) Return ¶
func (_c *DatabaseService_GetUsers_Call) Return(_a0 *graph.UserConnection, _a1 error) *DatabaseService_GetUsers_Call
func (*DatabaseService_GetUsers_Call) Run ¶
func (_c *DatabaseService_GetUsers_Call) Run(run func(ctx context.Context, tenantID string, limit int, page int)) *DatabaseService_GetUsers_Call
func (*DatabaseService_GetUsers_Call) RunAndReturn ¶
func (_c *DatabaseService_GetUsers_Call) RunAndReturn(run func(context.Context, string, int, int) (*graph.UserConnection, error)) *DatabaseService_GetUsers_Call
type DatabaseService_InviteUser_Call ¶
DatabaseService_InviteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InviteUser'
func (*DatabaseService_InviteUser_Call) Return ¶
func (_c *DatabaseService_InviteUser_Call) Return(_a0 error) *DatabaseService_InviteUser_Call
func (*DatabaseService_InviteUser_Call) Run ¶
func (_c *DatabaseService_InviteUser_Call) Run(run func(ctx context.Context, tenantID string, invite graph.Invite, notifyByEmail bool)) *DatabaseService_InviteUser_Call
func (*DatabaseService_InviteUser_Call) RunAndReturn ¶
func (_c *DatabaseService_InviteUser_Call) RunAndReturn(run func(context.Context, string, graph.Invite, bool) error) *DatabaseService_InviteUser_Call
type DatabaseService_LoginUserWithToken_Call ¶ added in v0.4.2
DatabaseService_LoginUserWithToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoginUserWithToken'
func (*DatabaseService_LoginUserWithToken_Call) Return ¶ added in v0.4.2
func (_c *DatabaseService_LoginUserWithToken_Call) Return(_a0 error) *DatabaseService_LoginUserWithToken_Call
func (*DatabaseService_LoginUserWithToken_Call) RunAndReturn ¶ added in v0.4.2
type DatabaseService_RemoveRoleFromInvite_Call ¶
DatabaseService_RemoveRoleFromInvite_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveRoleFromInvite'
func (*DatabaseService_RemoveRoleFromInvite_Call) Return ¶
func (_c *DatabaseService_RemoveRoleFromInvite_Call) Return(_a0 error) *DatabaseService_RemoveRoleFromInvite_Call
func (*DatabaseService_RemoveRoleFromInvite_Call) Run ¶
func (_c *DatabaseService_RemoveRoleFromInvite_Call) Run(run func(ctx context.Context, criteria db.Invite, roleToDelete string)) *DatabaseService_RemoveRoleFromInvite_Call
func (*DatabaseService_RemoveRoleFromInvite_Call) RunAndReturn ¶
func (_c *DatabaseService_RemoveRoleFromInvite_Call) RunAndReturn(run func(context.Context, db.Invite, string) error) *DatabaseService_RemoveRoleFromInvite_Call
type DatabaseService_RemoveUser_Call ¶
DatabaseService_RemoveUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveUser'
func (*DatabaseService_RemoveUser_Call) Return ¶
func (_c *DatabaseService_RemoveUser_Call) Return(_a0 bool, _a1 error) *DatabaseService_RemoveUser_Call
func (*DatabaseService_RemoveUser_Call) Run ¶
func (_c *DatabaseService_RemoveUser_Call) Run(run func(ctx context.Context, tenantID string, userId string, email string)) *DatabaseService_RemoveUser_Call
func (*DatabaseService_RemoveUser_Call) RunAndReturn ¶
func (_c *DatabaseService_RemoveUser_Call) RunAndReturn(run func(context.Context, string, string, string) (bool, error)) *DatabaseService_RemoveUser_Call
type DatabaseService_Save_Call ¶
DatabaseService_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'
func (*DatabaseService_Save_Call) Return ¶
func (_c *DatabaseService_Save_Call) Return(_a0 error) *DatabaseService_Save_Call
func (*DatabaseService_Save_Call) Run ¶
func (_c *DatabaseService_Save_Call) Run(run func(user *graph.User)) *DatabaseService_Save_Call
func (*DatabaseService_Save_Call) RunAndReturn ¶
func (_c *DatabaseService_Save_Call) RunAndReturn(run func(*graph.User) error) *DatabaseService_Save_Call
type DatabaseService_SearchUsers_Call ¶
DatabaseService_SearchUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchUsers'
func (*DatabaseService_SearchUsers_Call) Return ¶
func (_c *DatabaseService_SearchUsers_Call) Return(_a0 []*graph.User, _a1 error) *DatabaseService_SearchUsers_Call
func (*DatabaseService_SearchUsers_Call) Run ¶
func (_c *DatabaseService_SearchUsers_Call) Run(run func(ctx context.Context, tenantID string, query string)) *DatabaseService_SearchUsers_Call
func (*DatabaseService_SearchUsers_Call) RunAndReturn ¶
func (_c *DatabaseService_SearchUsers_Call) RunAndReturn(run func(context.Context, string, string) ([]*graph.User, error)) *DatabaseService_SearchUsers_Call
type DatabaseService_SetUserHooks_Call ¶
DatabaseService_SetUserHooks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetUserHooks'
func (*DatabaseService_SetUserHooks_Call) Return ¶
func (_c *DatabaseService_SetUserHooks_Call) Return() *DatabaseService_SetUserHooks_Call
func (*DatabaseService_SetUserHooks_Call) Run ¶
func (_c *DatabaseService_SetUserHooks_Call) Run(run func(hooks db.UserHooks)) *DatabaseService_SetUserHooks_Call
func (*DatabaseService_SetUserHooks_Call) RunAndReturn ¶
func (_c *DatabaseService_SetUserHooks_Call) RunAndReturn(run func(db.UserHooks)) *DatabaseService_SetUserHooks_Call
type UserHooks ¶
UserHooks is an autogenerated mock type for the UserHooks type
func NewUserHooks ¶
NewUserHooks creates a new instance of UserHooks. 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 (*UserHooks) EXPECT ¶
func (_m *UserHooks) EXPECT() *UserHooks_Expecter
func (*UserHooks) UserCreated ¶
UserCreated provides a mock function with given fields: ctx, user, tenantID
func (*UserHooks) UserInvited ¶
func (_m *UserHooks) UserInvited(ctx context.Context, user *graph.User, tenantID string, scope string, userInvited bool)
UserInvited provides a mock function with given fields: ctx, user, tenantID, scope, userInvited
type UserHooks_Expecter ¶
type UserHooks_Expecter struct {
// contains filtered or unexported fields
}
func (*UserHooks_Expecter) UserCreated ¶
func (_e *UserHooks_Expecter) UserCreated(ctx interface{}, user interface{}, tenantID interface{}) *UserHooks_UserCreated_Call
UserCreated is a helper method to define mock.On call
- ctx context.Context
- user *graph.User
- tenantID string
func (*UserHooks_Expecter) UserInvited ¶
func (_e *UserHooks_Expecter) UserInvited(ctx interface{}, user interface{}, tenantID interface{}, scope interface{}, userInvited interface{}) *UserHooks_UserInvited_Call
UserInvited is a helper method to define mock.On call
- ctx context.Context
- user *graph.User
- tenantID string
- scope string
- userInvited bool
func (*UserHooks_Expecter) UserLogin ¶ added in v0.4.2
func (_e *UserHooks_Expecter) UserLogin(ctx interface{}, user interface{}, tenantID interface{}) *UserHooks_UserLogin_Call
UserLogin is a helper method to define mock.On call
- ctx context.Context
- user *graph.User
- tenantID string
func (*UserHooks_Expecter) UserRemoved ¶
func (_e *UserHooks_Expecter) UserRemoved(ctx interface{}, user interface{}, tenantID interface{}) *UserHooks_UserRemoved_Call
UserRemoved is a helper method to define mock.On call
- ctx context.Context
- user *graph.User
- tenantID string
type UserHooks_UserCreated_Call ¶
UserHooks_UserCreated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserCreated'
func (*UserHooks_UserCreated_Call) Return ¶
func (_c *UserHooks_UserCreated_Call) Return() *UserHooks_UserCreated_Call
func (*UserHooks_UserCreated_Call) Run ¶
func (_c *UserHooks_UserCreated_Call) Run(run func(ctx context.Context, user *graph.User, tenantID string)) *UserHooks_UserCreated_Call
func (*UserHooks_UserCreated_Call) RunAndReturn ¶
func (_c *UserHooks_UserCreated_Call) RunAndReturn(run func(context.Context, *graph.User, string)) *UserHooks_UserCreated_Call
type UserHooks_UserInvited_Call ¶
UserHooks_UserInvited_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserInvited'
func (*UserHooks_UserInvited_Call) Return ¶
func (_c *UserHooks_UserInvited_Call) Return() *UserHooks_UserInvited_Call
func (*UserHooks_UserInvited_Call) Run ¶
func (_c *UserHooks_UserInvited_Call) Run(run func(ctx context.Context, user *graph.User, tenantID string, scope string, userInvited bool)) *UserHooks_UserInvited_Call
func (*UserHooks_UserInvited_Call) RunAndReturn ¶
func (_c *UserHooks_UserInvited_Call) RunAndReturn(run func(context.Context, *graph.User, string, string, bool)) *UserHooks_UserInvited_Call
type UserHooks_UserLogin_Call ¶ added in v0.4.2
UserHooks_UserLogin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserLogin'
func (*UserHooks_UserLogin_Call) Return ¶ added in v0.4.2
func (_c *UserHooks_UserLogin_Call) Return() *UserHooks_UserLogin_Call
func (*UserHooks_UserLogin_Call) Run ¶ added in v0.4.2
func (_c *UserHooks_UserLogin_Call) Run(run func(ctx context.Context, user *graph.User, tenantID string)) *UserHooks_UserLogin_Call
func (*UserHooks_UserLogin_Call) RunAndReturn ¶ added in v0.4.2
func (_c *UserHooks_UserLogin_Call) RunAndReturn(run func(context.Context, *graph.User, string)) *UserHooks_UserLogin_Call
type UserHooks_UserRemoved_Call ¶
UserHooks_UserRemoved_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserRemoved'
func (*UserHooks_UserRemoved_Call) Return ¶
func (_c *UserHooks_UserRemoved_Call) Return() *UserHooks_UserRemoved_Call
func (*UserHooks_UserRemoved_Call) Run ¶
func (_c *UserHooks_UserRemoved_Call) Run(run func(ctx context.Context, user *graph.User, tenantID string)) *UserHooks_UserRemoved_Call
func (*UserHooks_UserRemoved_Call) RunAndReturn ¶
func (_c *UserHooks_UserRemoved_Call) RunAndReturn(run func(context.Context, *graph.User, string)) *UserHooks_UserRemoved_Call