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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type CustomerIdentityService_Expecter struct {
// contains filtered or unexported fields
}
func (*CustomerIdentityService_Expecter) GetByIdentity ¶
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 ¶
CustomerIdentityService_GetByIdentity_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByIdentity'
func (*CustomerIdentityService_GetByIdentity_Call) Return ¶
func (_c *CustomerIdentityService_GetByIdentity_Call) Return(_a0 domain.Customer, _a1 error) *CustomerIdentityService_GetByIdentity_Call
func (*CustomerIdentityService_GetByIdentity_Call) Run ¶
func (_c *CustomerIdentityService_GetByIdentity_Call) Run(run func(ctx context.Context, identity auth.Identity)) *CustomerIdentityService_GetByIdentity_Call
func (*CustomerIdentityService_GetByIdentity_Call) RunAndReturn ¶
func (_c *CustomerIdentityService_GetByIdentity_Call) RunAndReturn(run func(context.Context, auth.Identity) (domain.Customer, error)) *CustomerIdentityService_GetByIdentity_Call
type Customer_Expecter ¶
type Customer_Expecter struct {
// contains filtered or unexported fields
}
func (*Customer_Expecter) GetAddresses ¶
func (_e *Customer_Expecter) GetAddresses() *Customer_GetAddresses_Call
GetAddresses is a helper method to define mock.On call
func (*Customer_Expecter) GetDefaultBillingAddress ¶
func (_e *Customer_Expecter) GetDefaultBillingAddress() *Customer_GetDefaultBillingAddress_Call
GetDefaultBillingAddress is a helper method to define mock.On call
func (*Customer_Expecter) GetDefaultShippingAddress ¶
func (_e *Customer_Expecter) GetDefaultShippingAddress() *Customer_GetDefaultShippingAddress_Call
GetDefaultShippingAddress is a helper method to define mock.On call
func (*Customer_Expecter) GetID ¶
func (_e *Customer_Expecter) GetID() *Customer_GetID_Call
GetID is a helper method to define mock.On call
func (*Customer_Expecter) GetPersonalData ¶
func (_e *Customer_Expecter) GetPersonalData() *Customer_GetPersonalData_Call
GetPersonalData is a helper method to define mock.On call
type Customer_GetAddresses_Call ¶
Customer_GetAddresses_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAddresses'
func (*Customer_GetAddresses_Call) Return ¶
func (_c *Customer_GetAddresses_Call) Return(_a0 []domain.Address) *Customer_GetAddresses_Call
func (*Customer_GetAddresses_Call) Run ¶
func (_c *Customer_GetAddresses_Call) Run(run func()) *Customer_GetAddresses_Call
func (*Customer_GetAddresses_Call) RunAndReturn ¶
func (_c *Customer_GetAddresses_Call) RunAndReturn(run func() []domain.Address) *Customer_GetAddresses_Call
type Customer_GetDefaultBillingAddress_Call ¶
Customer_GetDefaultBillingAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultBillingAddress'
func (*Customer_GetDefaultBillingAddress_Call) Return ¶
func (_c *Customer_GetDefaultBillingAddress_Call) Return(_a0 *domain.Address) *Customer_GetDefaultBillingAddress_Call
func (*Customer_GetDefaultBillingAddress_Call) Run ¶
func (_c *Customer_GetDefaultBillingAddress_Call) Run(run func()) *Customer_GetDefaultBillingAddress_Call
func (*Customer_GetDefaultBillingAddress_Call) RunAndReturn ¶
func (_c *Customer_GetDefaultBillingAddress_Call) RunAndReturn(run func() *domain.Address) *Customer_GetDefaultBillingAddress_Call
type Customer_GetDefaultShippingAddress_Call ¶
Customer_GetDefaultShippingAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultShippingAddress'
func (*Customer_GetDefaultShippingAddress_Call) Return ¶
func (_c *Customer_GetDefaultShippingAddress_Call) Return(_a0 *domain.Address) *Customer_GetDefaultShippingAddress_Call
func (*Customer_GetDefaultShippingAddress_Call) Run ¶
func (_c *Customer_GetDefaultShippingAddress_Call) Run(run func()) *Customer_GetDefaultShippingAddress_Call
func (*Customer_GetDefaultShippingAddress_Call) RunAndReturn ¶
func (_c *Customer_GetDefaultShippingAddress_Call) RunAndReturn(run func() *domain.Address) *Customer_GetDefaultShippingAddress_Call
type Customer_GetID_Call ¶
Customer_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'
func (*Customer_GetID_Call) Return ¶
func (_c *Customer_GetID_Call) Return(_a0 string) *Customer_GetID_Call
func (*Customer_GetID_Call) Run ¶
func (_c *Customer_GetID_Call) Run(run func()) *Customer_GetID_Call
func (*Customer_GetID_Call) RunAndReturn ¶
func (_c *Customer_GetID_Call) RunAndReturn(run func() string) *Customer_GetID_Call
type Customer_GetPersonalData_Call ¶
Customer_GetPersonalData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPersonalData'
func (*Customer_GetPersonalData_Call) Return ¶
func (_c *Customer_GetPersonalData_Call) Return(_a0 domain.PersonData) *Customer_GetPersonalData_Call
func (*Customer_GetPersonalData_Call) Run ¶
func (_c *Customer_GetPersonalData_Call) Run(run func()) *Customer_GetPersonalData_Call
func (*Customer_GetPersonalData_Call) RunAndReturn ¶
func (_c *Customer_GetPersonalData_Call) RunAndReturn(run func() domain.PersonData) *Customer_GetPersonalData_Call