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:
Cory Forseth
2025-04-14 06:40:55 -05:00
committed by GitHub
parent 578fc13796
commit 2b279efe15
3 changed files with 18 additions and 12 deletions
+6
View File
@@ -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
}