Documentation ¶
Index ¶
- type App
- type Application
- type Commands
- type MockApp
- func (_m *MockApp) AssignShoppingList(ctx context.Context, cmd commands.AssignShoppingList) error
- func (_m *MockApp) CancelShoppingList(ctx context.Context, cmd commands.CancelShoppingList) error
- func (_m *MockApp) CompleteShoppingList(ctx context.Context, cmd commands.CompleteShoppingList) error
- func (_m *MockApp) CreateShoppingList(ctx context.Context, cmd commands.CreateShoppingList) error
- func (_m *MockApp) GetShoppingList(ctx context.Context, query queries.GetShoppingList) (*domain.ShoppingList, error)
- func (_m *MockApp) InitiateShopping(ctx context.Context, cmd commands.InitiateShopping) error
- type MockCommands
- func (_m *MockCommands) AssignShoppingList(ctx context.Context, cmd commands.AssignShoppingList) error
- func (_m *MockCommands) CancelShoppingList(ctx context.Context, cmd commands.CancelShoppingList) error
- func (_m *MockCommands) CompleteShoppingList(ctx context.Context, cmd commands.CompleteShoppingList) error
- func (_m *MockCommands) CreateShoppingList(ctx context.Context, cmd commands.CreateShoppingList) error
- func (_m *MockCommands) InitiateShopping(ctx context.Context, cmd commands.InitiateShopping) error
- type MockQueries
- type Queries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func New ¶
func New(shoppingLists domain.ShoppingListRepository, stores domain.StoreRepository, products domain.ProductRepository, domainPublisher ddd.EventPublisher[ddd.AggregateEvent]) *Application
type Commands ¶
type Commands interface { CreateShoppingList(ctx context.Context, cmd commands.CreateShoppingList) error CancelShoppingList(ctx context.Context, cmd commands.CancelShoppingList) error InitiateShopping(ctx context.Context, cmd commands.InitiateShopping) error AssignShoppingList(ctx context.Context, cmd commands.AssignShoppingList) error CompleteShoppingList(ctx context.Context, cmd commands.CompleteShoppingList) error }
type MockApp ¶
MockApp is an autogenerated mock type for the App type
func NewMockApp ¶
func NewMockApp(t mockConstructorTestingTNewMockApp) *MockApp
NewMockApp creates a new instance of MockApp. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockApp) AssignShoppingList ¶
AssignShoppingList provides a mock function with given fields: ctx, cmd
func (*MockApp) CancelShoppingList ¶
CancelShoppingList provides a mock function with given fields: ctx, cmd
func (*MockApp) CompleteShoppingList ¶
func (_m *MockApp) CompleteShoppingList(ctx context.Context, cmd commands.CompleteShoppingList) error
CompleteShoppingList provides a mock function with given fields: ctx, cmd
func (*MockApp) CreateShoppingList ¶
CreateShoppingList provides a mock function with given fields: ctx, cmd
func (*MockApp) GetShoppingList ¶
func (_m *MockApp) GetShoppingList(ctx context.Context, query queries.GetShoppingList) (*domain.ShoppingList, error)
GetShoppingList provides a mock function with given fields: ctx, query
func (*MockApp) InitiateShopping ¶
InitiateShopping provides a mock function with given fields: ctx, cmd
type MockCommands ¶
MockCommands is an autogenerated mock type for the Commands type
func NewMockCommands ¶
func NewMockCommands(t mockConstructorTestingTNewMockCommands) *MockCommands
NewMockCommands creates a new instance of MockCommands. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockCommands) AssignShoppingList ¶
func (_m *MockCommands) AssignShoppingList(ctx context.Context, cmd commands.AssignShoppingList) error
AssignShoppingList provides a mock function with given fields: ctx, cmd
func (*MockCommands) CancelShoppingList ¶
func (_m *MockCommands) CancelShoppingList(ctx context.Context, cmd commands.CancelShoppingList) error
CancelShoppingList provides a mock function with given fields: ctx, cmd
func (*MockCommands) CompleteShoppingList ¶
func (_m *MockCommands) CompleteShoppingList(ctx context.Context, cmd commands.CompleteShoppingList) error
CompleteShoppingList provides a mock function with given fields: ctx, cmd
func (*MockCommands) CreateShoppingList ¶
func (_m *MockCommands) CreateShoppingList(ctx context.Context, cmd commands.CreateShoppingList) error
CreateShoppingList provides a mock function with given fields: ctx, cmd
func (*MockCommands) InitiateShopping ¶
func (_m *MockCommands) InitiateShopping(ctx context.Context, cmd commands.InitiateShopping) error
InitiateShopping provides a mock function with given fields: ctx, cmd
type MockQueries ¶
MockQueries is an autogenerated mock type for the Queries type
func NewMockQueries ¶
func NewMockQueries(t mockConstructorTestingTNewMockQueries) *MockQueries
NewMockQueries creates a new instance of MockQueries. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockQueries) GetShoppingList ¶
func (_m *MockQueries) GetShoppingList(ctx context.Context, query queries.GetShoppingList) (*domain.ShoppingList, error)
GetShoppingList provides a mock function with given fields: ctx, query
type Queries ¶
type Queries interface {
GetShoppingList(ctx context.Context, query queries.GetShoppingList) (*domain.ShoppingList, error)
}