mocks

package
v3.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	mock.Mock
}

Customer is an autogenerated mock type for the Customer type

func NewCustomer added in v3.6.0

func NewCustomer(t mockConstructorTestingTNewCustomer) *Customer

NewCustomer creates a new instance of Customer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Customer) GetAddresses

func (_m *Customer) GetAddresses() []domain.Address

GetAddresses provides a mock function with given fields:

func (*Customer) GetDefaultBillingAddress

func (_m *Customer) GetDefaultBillingAddress() *domain.Address

GetDefaultBillingAddress provides a mock function with given fields:

func (*Customer) GetDefaultShippingAddress

func (_m *Customer) GetDefaultShippingAddress() *domain.Address

GetDefaultShippingAddress provides a mock function with given fields:

func (*Customer) GetID

func (_m *Customer) GetID() string

GetID provides a mock function with given fields:

func (*Customer) GetPersonalData

func (_m *Customer) GetPersonalData() domain.PersonData

GetPersonalData provides a mock function with given fields:

type CustomerIdentityService

type CustomerIdentityService struct {
	mock.Mock
}

CustomerIdentityService is an autogenerated mock type for the CustomerIdentityService type

func NewCustomerIdentityService added in v3.6.0

func NewCustomerIdentityService(t mockConstructorTestingTNewCustomerIdentityService) *CustomerIdentityService

NewCustomerIdentityService creates a new instance of CustomerIdentityService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CustomerIdentityService) GetByIdentity

func (_m *CustomerIdentityService) GetByIdentity(ctx context.Context, identity auth.Identity) (domain.Customer, error)

GetByIdentity provides a mock function with given fields: ctx, identity

Jump to

Keyboard shortcuts

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