Documentation ¶
Index ¶
- type FakeService
- func (s *FakeService) AddTeamMember(userID, orgID, teamID int64, isExternal bool, permission models.PermissionType) error
- func (s *FakeService) CreateTeam(name, email string, orgID int64) (models.Team, error)
- func (s *FakeService) DeleteTeam(ctx context.Context, cmd *models.DeleteTeamCommand) error
- func (s *FakeService) GetTeamById(ctx context.Context, query *models.GetTeamByIdQuery) error
- func (s *FakeService) GetTeamMembers(ctx context.Context, query *models.GetTeamMembersQuery) error
- func (s *FakeService) GetTeamsByUser(ctx context.Context, query *models.GetTeamsByUserQuery) error
- func (s *FakeService) GetUserTeamMemberships(ctx context.Context, orgID, userID int64, external bool) ([]*models.TeamMemberDTO, error)
- func (s *FakeService) IsAdminOfTeams(ctx context.Context, query *models.IsAdminOfTeamsQuery) error
- func (s *FakeService) IsTeamMember(orgId int64, teamId int64, userId int64) (bool, error)
- func (s *FakeService) RemoveTeamMember(ctx context.Context, cmd *models.RemoveTeamMemberCommand) error
- func (s *FakeService) SearchTeams(ctx context.Context, query *models.SearchTeamsQuery) error
- func (s *FakeService) UpdateTeam(ctx context.Context, cmd *models.UpdateTeamCommand) error
- func (s *FakeService) UpdateTeamMember(ctx context.Context, cmd *models.UpdateTeamMemberCommand) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeService ¶
type FakeService struct { ExpectedTeam models.Team ExpectedTeamsByUser []*models.TeamDTO ExpectedMembers []*models.TeamMemberDTO ExpectedError error }
func NewFakeService ¶
func NewFakeService() *FakeService
func (*FakeService) AddTeamMember ¶
func (s *FakeService) AddTeamMember(userID, orgID, teamID int64, isExternal bool, permission models.PermissionType) error
func (*FakeService) CreateTeam ¶
func (*FakeService) DeleteTeam ¶
func (s *FakeService) DeleteTeam(ctx context.Context, cmd *models.DeleteTeamCommand) error
func (*FakeService) GetTeamById ¶
func (s *FakeService) GetTeamById(ctx context.Context, query *models.GetTeamByIdQuery) error
func (*FakeService) GetTeamMembers ¶
func (s *FakeService) GetTeamMembers(ctx context.Context, query *models.GetTeamMembersQuery) error
func (*FakeService) GetTeamsByUser ¶
func (s *FakeService) GetTeamsByUser(ctx context.Context, query *models.GetTeamsByUserQuery) error
func (*FakeService) GetUserTeamMemberships ¶
func (s *FakeService) GetUserTeamMemberships(ctx context.Context, orgID, userID int64, external bool) ([]*models.TeamMemberDTO, error)
func (*FakeService) IsAdminOfTeams ¶
func (s *FakeService) IsAdminOfTeams(ctx context.Context, query *models.IsAdminOfTeamsQuery) error
func (*FakeService) IsTeamMember ¶
func (*FakeService) RemoveTeamMember ¶
func (s *FakeService) RemoveTeamMember(ctx context.Context, cmd *models.RemoveTeamMemberCommand) error
func (*FakeService) SearchTeams ¶
func (s *FakeService) SearchTeams(ctx context.Context, query *models.SearchTeamsQuery) error
func (*FakeService) UpdateTeam ¶
func (s *FakeService) UpdateTeam(ctx context.Context, cmd *models.UpdateTeamCommand) error
func (*FakeService) UpdateTeamMember ¶
func (s *FakeService) UpdateTeamMember(ctx context.Context, cmd *models.UpdateTeamMemberCommand) error
Click to show internal directories.
Click to hide internal directories.