diff --git a/fake_client.go b/fake_client.go index 0364ec4..bdfcb5e 100644 --- a/fake_client.go +++ b/fake_client.go @@ -274,9 +274,7 @@ func NewFakeClient() (*FakeClient, error) { // ListMemberships implemented in a fake way for automated tests func (c *FakeClient) ListMemberships() (*MembershipResponse, error) { - return &MembershipResponse{ - Accounts: c.OrganisationAccounts, - }, nil + return &MembershipResponse{}, nil } // Ping implemented in a fake way for automated tests diff --git a/membership.go b/membership.go index b47321d..17702c7 100644 --- a/membership.go +++ b/membership.go @@ -7,8 +7,8 @@ import ( // MembershipResponse is the response for the memberships of a user type MembershipResponse struct { - Accounts []Account - Organisations []Organisation + Accounts []MembershipAccount + Organisations []MembershipOrganisation } // MembershipAccount is the DTO for an account.