Documentation ¶
Index ¶
- type Customer
- func (_m *Customer) EXPECT() *Customer_Expecter
- func (_m *Customer) GetAddresses() []domain.Address
- func (_m *Customer) GetDefaultBillingAddress() *domain.Address
- func (_m *Customer) GetDefaultShippingAddress() *domain.Address
- func (_m *Customer) GetID() string
- func (_m *Customer) GetPersonalData() domain.PersonData
- type CustomerIdentityService
- type CustomerIdentityService_Expecter
- type CustomerIdentityService_GetByIdentity_Call
- func (_c *CustomerIdentityService_GetByIdentity_Call) Return(_a0 domain.Customer, _a1 error) *CustomerIdentityService_GetByIdentity_Call
- func (_c *CustomerIdentityService_GetByIdentity_Call) Run(run func(ctx context.Context, identity auth.Identity)) *CustomerIdentityService_GetByIdentity_Call
- func (_c *CustomerIdentityService_GetByIdentity_Call) RunAndReturn(run func(context.Context, auth.Identity) (domain.Customer, error)) *CustomerIdentityService_GetByIdentity_Call
- type Customer_Expecter
- func (_e *Customer_Expecter) GetAddresses() *Customer_GetAddresses_Call
- func (_e *Customer_Expecter) GetDefaultBillingAddress() *Customer_GetDefaultBillingAddress_Call
- func (_e *Customer_Expecter) GetDefaultShippingAddress() *Customer_GetDefaultShippingAddress_Call
- func (_e *Customer_Expecter) GetID() *Customer_GetID_Call
- func (_e *Customer_Expecter) GetPersonalData() *Customer_GetPersonalData_Call
- type Customer_GetAddresses_Call
- type Customer_GetDefaultBillingAddress_Call
- func (_c *Customer_GetDefaultBillingAddress_Call) Return(_a0 *domain.Address) *Customer_GetDefaultBillingAddress_Call
- func (_c *Customer_GetDefaultBillingAddress_Call) Run(run func()) *Customer_GetDefaultBillingAddress_Call
- func (_c *Customer_GetDefaultBillingAddress_Call) RunAndReturn(run func() *domain.Address) *Customer_GetDefaultBillingAddress_Call
- type Customer_GetDefaultShippingAddress_Call
- func (_c *Customer_GetDefaultShippingAddress_Call) Return(_a0 *domain.Address) *Customer_GetDefaultShippingAddress_Call
- func (_c *Customer_GetDefaultShippingAddress_Call) Run(run func()) *Customer_GetDefaultShippingAddress_Call
- func (_c *Customer_GetDefaultShippingAddress_Call) RunAndReturn(run func() *domain.Address) *Customer_GetDefaultShippingAddress_Call
- type Customer_GetID_Call
- type Customer_GetPersonalData_Call
- func (_c *Customer_GetPersonalData_Call) Return(_a0 domain.PersonData) *Customer_GetPersonalData_Call
- func (_c *Customer_GetPersonalData_Call) Run(run func()) *Customer_GetPersonalData_Call
- func (_c *Customer_GetPersonalData_Call) RunAndReturn(run func() domain.PersonData) *Customer_GetPersonalData_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Customer ¶
Customer is an autogenerated mock type for the Customer type
func NewCustomer ¶ added in v3.6.0
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. The first argument is typically a *testing.T value.
func (*Customer) EXPECT ¶ added in v3.7.0
func (_m *Customer) EXPECT() *Customer_Expecter
func (*Customer) GetAddresses ¶
GetAddresses provides a mock function with given fields:
func (*Customer) GetDefaultBillingAddress ¶
GetDefaultBillingAddress provides a mock function with given fields:
func (*Customer) GetDefaultShippingAddress ¶
GetDefaultShippingAddress 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 ¶
CustomerIdentityService is an autogenerated mock type for the CustomerIdentityService type
func NewCustomerIdentityService ¶ added in v3.6.0
func NewCustomerIdentityService(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*CustomerIdentityService) EXPECT ¶ added in v3.7.0
func (_m *CustomerIdentityService) EXPECT() *CustomerIdentityService_Expecter
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
type CustomerIdentityService_Expecter ¶ added in v3.7.0
type CustomerIdentityService_Expecter struct {
// contains filtered or unexported fields
}
func (*CustomerIdentityService_Expecter) GetByIdentity ¶ added in v3.7.0
func (_e *CustomerIdentityService_Expecter) GetByIdentity(ctx interface{}, identity interface{}) *CustomerIdentityService_GetByIdentity_Call
GetByIdentity is a helper method to define mock.On call
- ctx context.Context
- identity auth.Identity
type CustomerIdentityService_GetByIdentity_Call ¶ added in v3.7.0
CustomerIdentityService_GetByIdentity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIdentity'
func (*CustomerIdentityService_GetByIdentity_Call) Return ¶ added in v3.7.0
func (_c *CustomerIdentityService_GetByIdentity_Call) Return(_a0 domain.Customer, _a1 error) *CustomerIdentityService_GetByIdentity_Call
func (*CustomerIdentityService_GetByIdentity_Call) Run ¶ added in v3.7.0
func (_c *CustomerIdentityService_GetByIdentity_Call) Run(run func(ctx context.Context, identity auth.Identity)) *CustomerIdentityService_GetByIdentity_Call
func (*CustomerIdentityService_GetByIdentity_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CustomerIdentityService_GetByIdentity_Call) RunAndReturn(run func(context.Context, auth.Identity) (domain.Customer, error)) *CustomerIdentityService_GetByIdentity_Call
type Customer_Expecter ¶ added in v3.7.0
type Customer_Expecter struct {
// contains filtered or unexported fields
}
func (*Customer_Expecter) GetAddresses ¶ added in v3.7.0
func (_e *Customer_Expecter) GetAddresses() *Customer_GetAddresses_Call
GetAddresses is a helper method to define mock.On call
func (*Customer_Expecter) GetDefaultBillingAddress ¶ added in v3.7.0
func (_e *Customer_Expecter) GetDefaultBillingAddress() *Customer_GetDefaultBillingAddress_Call
GetDefaultBillingAddress is a helper method to define mock.On call
func (*Customer_Expecter) GetDefaultShippingAddress ¶ added in v3.7.0
func (_e *Customer_Expecter) GetDefaultShippingAddress() *Customer_GetDefaultShippingAddress_Call
GetDefaultShippingAddress is a helper method to define mock.On call
func (*Customer_Expecter) GetID ¶ added in v3.7.0
func (_e *Customer_Expecter) GetID() *Customer_GetID_Call
GetID is a helper method to define mock.On call
func (*Customer_Expecter) GetPersonalData ¶ added in v3.7.0
func (_e *Customer_Expecter) GetPersonalData() *Customer_GetPersonalData_Call
GetPersonalData is a helper method to define mock.On call
type Customer_GetAddresses_Call ¶ added in v3.7.0
Customer_GetAddresses_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAddresses'
func (*Customer_GetAddresses_Call) Return ¶ added in v3.7.0
func (_c *Customer_GetAddresses_Call) Return(_a0 []domain.Address) *Customer_GetAddresses_Call
func (*Customer_GetAddresses_Call) Run ¶ added in v3.7.0
func (_c *Customer_GetAddresses_Call) Run(run func()) *Customer_GetAddresses_Call
func (*Customer_GetAddresses_Call) RunAndReturn ¶ added in v3.7.0
func (_c *Customer_GetAddresses_Call) RunAndReturn(run func() []domain.Address) *Customer_GetAddresses_Call
type Customer_GetDefaultBillingAddress_Call ¶ added in v3.7.0
Customer_GetDefaultBillingAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultBillingAddress'
func (*Customer_GetDefaultBillingAddress_Call) Return ¶ added in v3.7.0
func (_c *Customer_GetDefaultBillingAddress_Call) Return(_a0 *domain.Address) *Customer_GetDefaultBillingAddress_Call
func (*Customer_GetDefaultBillingAddress_Call) Run ¶ added in v3.7.0
func (_c *Customer_GetDefaultBillingAddress_Call) Run(run func()) *Customer_GetDefaultBillingAddress_Call
func (*Customer_GetDefaultBillingAddress_Call) RunAndReturn ¶ added in v3.7.0
func (_c *Customer_GetDefaultBillingAddress_Call) RunAndReturn(run func() *domain.Address) *Customer_GetDefaultBillingAddress_Call
type Customer_GetDefaultShippingAddress_Call ¶ added in v3.7.0
Customer_GetDefaultShippingAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultShippingAddress'
func (*Customer_GetDefaultShippingAddress_Call) Return ¶ added in v3.7.0
func (_c *Customer_GetDefaultShippingAddress_Call) Return(_a0 *domain.Address) *Customer_GetDefaultShippingAddress_Call
func (*Customer_GetDefaultShippingAddress_Call) Run ¶ added in v3.7.0
func (_c *Customer_GetDefaultShippingAddress_Call) Run(run func()) *Customer_GetDefaultShippingAddress_Call
func (*Customer_GetDefaultShippingAddress_Call) RunAndReturn ¶ added in v3.7.0
func (_c *Customer_GetDefaultShippingAddress_Call) RunAndReturn(run func() *domain.Address) *Customer_GetDefaultShippingAddress_Call
type Customer_GetID_Call ¶ added in v3.7.0
Customer_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'
func (*Customer_GetID_Call) Return ¶ added in v3.7.0
func (_c *Customer_GetID_Call) Return(_a0 string) *Customer_GetID_Call
func (*Customer_GetID_Call) Run ¶ added in v3.7.0
func (_c *Customer_GetID_Call) Run(run func()) *Customer_GetID_Call
func (*Customer_GetID_Call) RunAndReturn ¶ added in v3.7.0
func (_c *Customer_GetID_Call) RunAndReturn(run func() string) *Customer_GetID_Call
type Customer_GetPersonalData_Call ¶ added in v3.7.0
Customer_GetPersonalData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPersonalData'
func (*Customer_GetPersonalData_Call) Return ¶ added in v3.7.0
func (_c *Customer_GetPersonalData_Call) Return(_a0 domain.PersonData) *Customer_GetPersonalData_Call
func (*Customer_GetPersonalData_Call) Run ¶ added in v3.7.0
func (_c *Customer_GetPersonalData_Call) Run(run func()) *Customer_GetPersonalData_Call
func (*Customer_GetPersonalData_Call) RunAndReturn ¶ added in v3.7.0
func (_c *Customer_GetPersonalData_Call) RunAndReturn(run func() domain.PersonData) *Customer_GetPersonalData_Call