orgtest

package
v0.0.0-cloud Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 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 FakeOrgService

type FakeOrgService struct {
	ExpectedOrgUserID            int64
	ExpectedError                error
	ExpectedUserOrgDTO           []*org.UserOrgDTO
	ExpectedOrgs                 []*org.OrgDTO
	ExpectedOrg                  *org.Org
	ExpectedOrgUsers             []*org.OrgUserDTO
	ExpectedSearchOrgUsersResult *org.SearchOrgUsersQueryResult
	ExpectedOrgListResponse      OrgListResponse
}

func NewOrgServiceFake

func NewOrgServiceFake() *FakeOrgService

func (*FakeOrgService) AddOrgUser

func (f *FakeOrgService) AddOrgUser(ctx context.Context, cmd *org.AddOrgUserCommand) error

func (*FakeOrgService) CreateWithMember

func (f *FakeOrgService) CreateWithMember(ctx context.Context, cmd *org.CreateOrgCommand) (*org.Org, error)

func (*FakeOrgService) Delete

func (f *FakeOrgService) Delete(ctx context.Context, cmd *org.DeleteOrgCommand) error

func (*FakeOrgService) DeleteUserFromAll

func (f *FakeOrgService) DeleteUserFromAll(ctx context.Context, userID int64) error

func (*FakeOrgService) GetByID

func (f *FakeOrgService) GetByID(ctx context.Context, query *org.GetOrgByIDQuery) (*org.Org, error)

func (*FakeOrgService) GetByName

func (f *FakeOrgService) GetByName(ctx context.Context, query *org.GetOrgByNameQuery) (*org.Org, error)

func (*FakeOrgService) GetIDForNewUser

func (f *FakeOrgService) GetIDForNewUser(ctx context.Context, cmd org.GetOrgIDForNewUserCommand) (int64, error)

func (*FakeOrgService) GetOrCreate

func (f *FakeOrgService) GetOrCreate(ctx context.Context, orgName string) (int64, error)

func (*FakeOrgService) GetOrgUsers

func (f *FakeOrgService) GetOrgUsers(ctx context.Context, query *org.GetOrgUsersQuery) ([]*org.OrgUserDTO, error)

func (*FakeOrgService) GetUserOrgList

func (f *FakeOrgService) GetUserOrgList(ctx context.Context, query *org.GetUserOrgListQuery) ([]*org.UserOrgDTO, error)

func (*FakeOrgService) Insert

func (f *FakeOrgService) Insert(ctx context.Context, cmd *org.OrgUser) (int64, error)

func (*FakeOrgService) InsertOrgUser

func (f *FakeOrgService) InsertOrgUser(ctx context.Context, cmd *org.OrgUser) (int64, error)

func (*FakeOrgService) RemoveOrgUser

func (f *FakeOrgService) RemoveOrgUser(ctx context.Context, cmd *org.RemoveOrgUserCommand) error

func (*FakeOrgService) Search

func (f *FakeOrgService) Search(ctx context.Context, query *org.SearchOrgsQuery) ([]*org.OrgDTO, error)

func (*FakeOrgService) SearchOrgUsers

func (*FakeOrgService) UpdateAddress

func (f *FakeOrgService) UpdateAddress(ctx context.Context, cmd *org.UpdateOrgAddressCommand) error

func (*FakeOrgService) UpdateOrg

func (f *FakeOrgService) UpdateOrg(ctx context.Context, cmd *org.UpdateOrgCommand) error

func (*FakeOrgService) UpdateOrgUser

func (f *FakeOrgService) UpdateOrgUser(ctx context.Context, cmd *org.UpdateOrgUserCommand) error

type OrgListResponse

type OrgListResponse []struct {
	OrgID    int64
	Response error
}

Jump to

Keyboard shortcuts

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