Skip to content

Commit

Permalink
Generated mock for the invitations service
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
  • Loading branch information
nyagamunene committed Apr 5, 2024
1 parent 12beab3 commit 48d8fd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions invitations/invitations.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ func (page InvitationPage) MarshalJSON() ([]byte, error) {
}

// Service is an interface that defines methods for managing invitations.
//
//go:generate mockery --name Service --output=./mocks --filename service.go --quiet --note "Copyright (c) Abstract Machines"
type Service interface {
// SendInvitation sends an invitation to the given user.
// Only domain administrators and platform administrators can send invitations.
Expand Down Expand Up @@ -93,6 +95,7 @@ type Service interface {
DeleteInvitation(ctx context.Context, token, userID, domainID string) (err error)
}

//go:generate mockery --name Repository --output=./mocks --filename invitations.go --quiet --note "Copyright (c) Abstract Machines"
type Repository interface {
// Create creates an invitation.
Create(ctx context.Context, invitation Invitation) (err error)
Expand Down

0 comments on commit 48d8fd4

Please sign in to comment.