Use team uid for team group actions (#103415)
* use team uid for team group actions * add constructor for tests; rename vars for clarity * github told me to do this
This commit is contained in:
@@ -20,6 +20,12 @@ func NewFakeService() *FakeService {
|
||||
return &FakeService{}
|
||||
}
|
||||
|
||||
func NewFakeServiceWithTeamDTO(teamDTO *team.TeamDTO) *FakeService {
|
||||
return &FakeService{
|
||||
ExpectedTeamDTO: teamDTO,
|
||||
}
|
||||
}
|
||||
|
||||
func (s *FakeService) CreateTeam(ctx context.Context, cmd *team.CreateTeamCommand) (team.Team, error) {
|
||||
return s.ExpectedTeam, s.ExpectedError
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user