teamtest

package
v0.0.1-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

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 (s *FakeService) CreateTeam(name, email string, orgID int64) (models.Team, error)

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 (s *FakeService) IsTeamMember(orgId int64, teamId int64, userId int64) (bool, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL